blob: 7ea736336839b3979fd9518db01a5fd1c11818eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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 1 previous error
|