]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/issue28498-reject-ex1.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / issue28498-reject-ex1.rs
index 05104d1cdc020c58eeba60618565fbf86d9c4cba..4d1b4125503b6c39459ace34c46a351f9df82066 100644 (file)
@@ -32,7 +32,6 @@ fn main() {
     foo.data.push(Concrete(0, Cell::new(None)));
 
     foo.data[0].1.set(Some(&foo.data[1]));
-    //~^ ERROR `foo.data` does not live long enough
+    //~^ ERROR borrow may still be in use when destructor runs
     foo.data[1].1.set(Some(&foo.data[0]));
-    //~^ ERROR `foo.data` does not live long enough
 }