rust/src/test/ui/issues/issue-52049.nll.stderr

14 lines
460 B
Plaintext
Raw Normal View History

2018-09-25 10:24:20 -05:00
error[E0716]: temporary value dropped while borrowed
2018-07-07 05:21:50 -05:00
--> $DIR/issue-52049.rs:16:10
|
LL | foo(&unpromotable(5u32));
| ^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use
2018-07-07 05:21:50 -05:00
LL | }
| - temporary value is freed at the end of this statement
2018-07-07 05:21:50 -05:00
|
= note: borrowed value must be valid for the static lifetime...
error: aborting due to previous error
2018-09-25 10:24:20 -05:00
For more information about this error, try `rustc --explain E0716`.