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

16 lines
400 B
Plaintext
Raw Normal View History

2017-05-27 12:58:52 -05:00
error[E0597]: borrowed value does not live long enough
--> $DIR/issue-15480.rs:14:6
|
13 | &3
| - temporary value created here
14 | ];
| ^ temporary value dropped here while still borrowed
...
19 | }
| - temporary value needs to live until here
|
= note: consider using a `let` binding to increase its lifetime
error: aborting due to previous error(s)