about summary refs log tree commit diff
path: root/src/test/compile-fail/use-after-move-implicity-coerced-object.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/use-after-move-implicity-coerced-object.rs')
-rw-r--r--src/test/compile-fail/use-after-move-implicity-coerced-object.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/use-after-move-implicity-coerced-object.rs b/src/test/compile-fail/use-after-move-implicity-coerced-object.rs
index bef6165d120..d79461a577e 100644
--- a/src/test/compile-fail/use-after-move-implicity-coerced-object.rs
+++ b/src/test/compile-fail/use-after-move-implicity-coerced-object.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-linelength
+
 struct Number {
     n: i64
 }
@@ -32,6 +34,6 @@ fn main() {
     let n = ~Number { n: 42 };
     let mut l = ~List { list: ~[] };
     l.push(n);
-    //^~ NOTE: `n` moved here because it has type `~Number`, which is non-copyable (perhaps you meant to use clone()?)
-    let x = n.to_str(); //~ ERROR: use of moved value: `n`
+    let x = n.to_str();
+    //~^ ERROR: use of moved value: `n`
 }