mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
12 lines
292 B
Plaintext
12 lines
292 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/issue-54943.rs:6:13
|
|
|
|
|
LL | fn boo<'a>() {
|
|
| -- lifetime `'a` defined here
|
|
...
|
|
LL | let x = foo::<&'a u32>();
|
|
| ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
error: aborting due to previous error
|
|
|