]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-55394.stderr
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / issue-55394.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-55394.rs:9:9
3    |
4 LL |     fn new(bar: &mut Bar) -> Self {
5    |                 -            ---- return type is Foo<'2>
6    |                 |
7    |                 let's call the lifetime of this reference `'1`
8 LL |         Foo { bar }
9    |         ^^^^^^^^^^^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
10
11 error: aborting due to previous error
12