rust/src/test/ui/span/issue-29106.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

23 lines
782 B
Text

error[E0597]: `x` does not live long enough
--> $DIR/issue-29106.rs:26:27
|
LL | y = Arc::new(Foo(&x));
| ^ borrowed value does not live long enough
LL | }
| - `x` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
error[E0597]: `x` does not live long enough
--> $DIR/issue-29106.rs:33:26
|
LL | y = Rc::new(Foo(&x));
| ^ borrowed value does not live long enough
LL | }
| - `x` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0597`.