summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/issue-102209.stderr
blob: 351de8217b2348ba37ef9e91c402f0767d0a1e1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: lifetime may not live long enough
  --> $DIR/issue-102209.rs:10:29
   |
LL | impl NfaBuilder<'_> {
   |                 -- lifetime `'2` appears in the `impl`'s self type
LL |     pub fn with<R, F: FnOnce(NfaBuilder<'_>) -> R>(f: F) -> R {
LL |         Brand::with(|brand| {
   |                      ----- has type `Brand<'1>`
LL |             f(Self { brand: brand.lt })
   |                             ^^^^^^^^ this usage requires that `'1` must outlive `'2`

error: lifetime may not live long enough
  --> $DIR/issue-102209.rs:10:29
   |
LL | impl NfaBuilder<'_> {
   |                 -- lifetime `'1` appears in the `impl`'s self type
...
LL |             f(Self { brand: brand.lt })
   |                             ^^^^^^^^ this usage requires that `'1` must outlive `'static`

error: aborting due to 2 previous errors