1 error[E0261]: use of undeclared lifetime name `'b`
2 --> $DIR/generic_associated_type_undeclared_lifetimes.rs:9:37
4 LL | + Deref<Target = Self::Item<'b>>;
5 | ^^ undeclared lifetime
7 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
8 help: consider introducing lifetime `'b` here
10 LL | trait Iterable<'b> {
12 help: consider introducing lifetime `'b` here
14 LL | type Iter<'b, 'a>: Iterator<Item = Self::Item<'a>>
17 error[E0261]: use of undeclared lifetime name `'undeclared`
18 --> $DIR/generic_associated_type_undeclared_lifetimes.rs:12:41
20 LL | fn iter<'a>(&'a self) -> Self::Iter<'undeclared>;
21 | ^^^^^^^^^^^ undeclared lifetime
23 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
24 help: consider introducing lifetime `'undeclared` here
26 LL | trait Iterable<'undeclared> {
28 help: consider introducing lifetime `'undeclared` here
30 LL | fn iter<'undeclared, 'a>(&'a self) -> Self::Iter<'undeclared>;
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0261`.