Permalink
Browse files

Deal with test failures in various ways

  • Loading branch information...
1 parent 6d4fbd4 commit d062896a8bb224f97c9bac804d40b5406a3ac993 @brson brson committed Dec 18, 2012
@@ -1,3 +1,5 @@
+// xfail-test
+
fn a() -> &[int] {
let vec = [1, 2, 3, 4];
let tail = match vec {
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+// xfail-test
+
struct X { x: (), }
impl X : Drop {
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+// xfail-test
+
struct X { x: (), }
impl X : Drop {
@@ -19,9 +19,9 @@ fn main() {
let mut x = X(Right(main));
do (&mut x).with |opt| { //~ ERROR illegal borrow
match opt {
- &Right(f) => {
+ &Right(ref f) => {
x = X(Left((0,0)));
- f()
+ (*f)()
},
_ => fail
}
@@ -1,7 +1,7 @@
#[forbid(default_methods)];
-trait Foo {
- fn bar() { io::println("hi"); } //~ ERROR default methods are experimental
+trait Foo { //~ ERROR default methods are experimental
+ fn bar() { io::println("hi"); }
}
fn main() {}

0 comments on commit d062896

Please sign in to comment.