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