]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/issue-11925.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / issue-11925.rs
index 276aaa1c2931d99fcca55e1a8e4c693fb1ee9f7d..0f6472b05f7aae7a228983c17c5ebf6bed70db45 100644 (file)
@@ -5,7 +5,7 @@ fn to_fn_once<A,F:FnOnce<A>>(f: F) -> F { f }
 fn main() {
     let r = {
         let x: Box<_> = box 42;
-        let f = to_fn_once(move|| &x); //~ ERROR does not live long enough
+        let f = to_fn_once(move|| &x); //~ ERROR cannot return reference to local data `x`
         f()
     };