]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lifetimes/issue-90600-expected-return-static-indirect.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / lifetimes / issue-90600-expected-return-static-indirect.rs
index 39996bbf43b3c5de940c2e999b4d5819714d49c2..ce4cddc9b39b3f4fda356ba28463a51406f5831c 100644 (file)
@@ -5,8 +5,9 @@ fn main() {}
 
 fn inner(mut foo: &[u8]) {
     let refcell = RefCell::new(&mut foo);
-    //~^ ERROR `foo` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement [E0759]
+    //~^ ERROR `foo` does not live long enough
     let read = &refcell as &RefCell<dyn Read>;
+    //~^ ERROR lifetime may not live long enough
 
     read_thing(read);
 }