]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/nll/issue-52663-span-decl-captured-variable.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / nll / issue-52663-span-decl-captured-variable.rs
index 3e57d26745a95550b73d87b74dfb8f67cd51db00..cd1f457a13064f0de9eb22b1dda56969c18c90d5 100644 (file)
@@ -1,5 +1,3 @@
-#![feature(nll)]
-
 fn expect_fn<F>(f: F) where F : Fn() {
     f();
 }
@@ -8,6 +6,6 @@ fn main() {
    {
        let x = (vec![22], vec![44]);
        expect_fn(|| drop(x.0));
-       //~^ ERROR cannot move out of captured variable in an `Fn` closure [E0507]
+       //~^ ERROR cannot move out of `x.0`, as `x` is a captured variable in an `Fn` closure [E0507]
    }
 }