fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: lifetime may not live long enough 2 --> $DIR/issue-102209.rs:10:29 3 | 4LL | impl NfaBuilder<'_> { 5 | -- lifetime `'2` appears in the `impl`'s self type 6LL | pub fn with<R, F: FnOnce(NfaBuilder<'_>) -> R>(f: F) -> R { 7LL | Brand::with(|brand| { 8 | ----- has type `Brand<'1>` 9LL | f(Self { brand: brand.lt }) 10 | ^^^^^^^^ this usage requires that `'1` must outlive `'2` 11 12error: lifetime may not live long enough 13 --> $DIR/issue-102209.rs:10:29 14 | 15LL | impl NfaBuilder<'_> { 16 | -- lifetime `'1` appears in the `impl`'s self type 17... 18LL | f(Self { brand: brand.lt }) 19 | ^^^^^^^^ this usage requires that `'1` must outlive `'static` 20 21error: aborting due to 2 previous errors 22