]> git.proxmox.com Git - rustc.git/blob - src/test/ui/impl-trait/multiple-lifetimes/error-handling.min_tait.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / multiple-lifetimes / error-handling.min_tait.stderr
1 error: lifetime may not live long enough
2 --> $DIR/error-handling.rs:25:16
3 |
4 LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
8 ...
9 LL | let _: &'b i32 = *u.0;
10 | ^^^^^^^ type annotation requires that `'a` must outlive `'b`
11 |
12 = help: consider adding the following bound: `'a: 'b`
13
14 error: aborting due to previous error
15