2019-01-27 11:03:21 +00:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 13:13:25 -04:00
|
|
|
--> $DIR/issue-26217.rs:4:5
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
|
LL | fn bar<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | foo::<&'a i32>();
|
|
|
|
| ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
2022-08-30 21:50:22 -04:00
|
|
|
|
|
|
|
|
note: due to current limitations in the borrow checker, this implies a `'static` lifetime
|
|
|
|
--> $DIR/issue-26217.rs:1:30
|
|
|
|
|
|
|
|
|
LL | fn foo<T>() where for<'a> T: 'a {}
|
|
|
|
| ^^
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|