]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / impl-trait / multiple-lifetimes / error-handling.polonius.stderr
1 error: lifetime may not live long enough
2   --> $DIR/error-handling.rs:22: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