rust/tests/ui/issues/issue-26217.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
481 B
Plaintext
Raw Normal View History

error: lifetime may not live long enough
2022-04-01 17:13:25 +00:00
--> $DIR/issue-26217.rs:4:5
|
LL | fn bar<'a>() {
| -- lifetime `'a` defined here
LL | foo::<&'a i32>();
| ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
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 {}
| ^^
error: aborting due to 1 previous error