]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-26217.stderr
Merge tag 'debian/1.65.0+dfsg1-1_exp3' into debian/sid
[rustc.git] / src / test / ui / issues / issue-26217.stderr
1 error: lifetime may not live long enough
2 --> $DIR/issue-26217.rs:4:5
3 |
4 LL | fn bar<'a>() {
5 | -- lifetime `'a` defined here
6 LL | foo::<&'a i32>();
7 | ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
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 | ^^
14
15 error: aborting due to previous error
16