]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-67510.stderr
Rollup merge of #86764 - estebank:issue-86756, r=pnkfelix
[rust.git] / src / test / ui / generic-associated-types / issue-67510.stderr
1 error[E0261]: use of undeclared lifetime name `'a`
2   --> $DIR/issue-67510.rs:7:21
3    |
4 LL | fn f(x: Box<dyn X<Y<'a>=&'a ()>>) {}
5    |     -               ^^ undeclared lifetime
6    |     |
7    |     help: consider introducing lifetime `'a` here: `<'a>`
8    |
9    = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
10
11 error[E0261]: use of undeclared lifetime name `'a`
12   --> $DIR/issue-67510.rs:7:26
13    |
14 LL | fn f(x: Box<dyn X<Y<'a>=&'a ()>>) {}
15    |     -                    ^^ undeclared lifetime
16    |     |
17    |     help: consider introducing lifetime `'a` here: `<'a>`
18    |
19    = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0261`.