]>
Commit | Line | Data |
---|---|---|
923072b8 | 1 | error: lifetime may not live long enough |
0731742a | 2 | --> $DIR/issue-26217.rs:4:5 |
8faf50e0 | 3 | | |
923072b8 FG |
4 | LL | fn bar<'a>() { |
5 | | -- lifetime `'a` defined here | |
8faf50e0 | 6 | LL | foo::<&'a i32>(); |
923072b8 | 7 | | ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
f2b60f7d FG |
8 | | |
9 | note: due to current limitations in the borrow checker, this implies a `'static` lifetime | |
10 | --> $DIR/issue-26217.rs:1:30 | |
11 | | | |
12 | LL | fn foo<T>() where for<'a> T: 'a {} | |
13 | | ^^ | |
8faf50e0 | 14 | |
4b012472 | 15 | error: aborting due to 1 previous error |
8faf50e0 | 16 |