]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-26217.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-26217.stderr
CommitLineData
923072b8 1error: lifetime may not live long enough
0731742a 2 --> $DIR/issue-26217.rs:4:5
8faf50e0 3 |
923072b8
FG
4LL | fn bar<'a>() {
5 | -- lifetime `'a` defined here
8faf50e0 6LL | foo::<&'a i32>();
923072b8 7 | ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
f2b60f7d
FG
8 |
9note: due to current limitations in the borrow checker, this implies a `'static` lifetime
10 --> $DIR/issue-26217.rs:1:30
11 |
12LL | fn foo<T>() where for<'a> T: 'a {}
13 | ^^
8faf50e0
XL
14
15error: aborting due to previous error
16