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

16 lines
419 B
Plaintext
Raw Normal View History

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