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

17 lines
497 B
Text
Raw Normal View History

2017-05-27 19:58:52 +02:00
error[E0597]: borrowed value does not live long enough
2017-12-13 17:27:23 -08:00
--> $DIR/issue-15480.rs:15:10
|
2017-08-13 11:46:49 +03:00
15 | &id(3)
2017-12-13 17:27:23 -08:00
| ^^^^^ temporary value does not live long enough
16 | ];
| - temporary value dropped here while still borrowed
...
2017-12-13 17:27:23 -08: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
2018-02-19 21:40:25 +01:00
If you want more information on this error, try using "rustc --explain E0597"