]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/regions/regions-ret.rs
Auto merge of #60093 - GuillaumeGomez:fix-attrs-pos, r=Manishearth
[rust.git] / src / test / ui / regions / regions-ret.rs
index a094d1af5b70900fa324e96d237f83c0b8aca642..580545ef8566cfa53100753cb4d7d5a4b1553bf4 100644 (file)
@@ -1,7 +1,7 @@
 fn id<T>(x: T) -> T { x }
 
 fn f(_x: &isize) -> &isize {
-    return &id(3); //~ ERROR borrowed value does not live long enough
+    return &id(3); //~ ERROR cannot return reference to temporary value
 }
 
 fn main() {