rust/src/test/ui/span/issue-29106.stderr

23 lines
748 B
Plaintext
Raw Normal View History

2017-05-27 19:58:52 +02:00
error[E0597]: `x` does not live long enough
--> $DIR/issue-29106.rs:27:5
|
26 | y = Arc::new(Foo(&x));
| - borrow occurs here
27 | } //~ ERROR `x` does not live long enough
| ^ `x` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
2017-05-27 19:58:52 +02:00
error[E0597]: `x` does not live long enough
--> $DIR/issue-29106.rs:33:5
|
32 | y = Rc::new(Foo(&x));
| - borrow occurs here
33 | } //~ ERROR `x` does not live long enough
| ^ `x` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
error: aborting due to previous error(s)