fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: lifetime may not live long enough 2 --> $DIR/issue-55394.rs:9:9 3 | 4LL | fn new(bar: &mut Bar) -> Self { 5 | - ---- return type is Foo<'2> 6 | | 7 | let's call the lifetime of this reference `'1` 8LL | Foo { bar } 9 | ^^^^^^^^^^^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` 10 11error: aborting due to previous error 12