]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / generic_associated_type_undeclared_lifetimes.stderr
1 error[E0261]: use of undeclared lifetime name `'b`
2 --> $DIR/generic_associated_type_undeclared_lifetimes.rs:9:37
3 |
4 LL | + Deref<Target = Self::Item<'b>>;
5 | ^^ undeclared lifetime
6 |
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
9 |
10 LL | trait Iterable<'b> {
11 | ^^^^
12 help: consider introducing lifetime `'b` here
13 |
14 LL | type Iter<'b, 'a>: Iterator<Item = Self::Item<'a>>
15 | ^^^
16
17 error[E0261]: use of undeclared lifetime name `'undeclared`
18 --> $DIR/generic_associated_type_undeclared_lifetimes.rs:12:41
19 |
20 LL | fn iter<'a>(&'a self) -> Self::Iter<'undeclared>;
21 | ^^^^^^^^^^^ undeclared lifetime
22 |
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
25 |
26 LL | trait Iterable<'undeclared> {
27 | ^^^^^^^^^^^^^
28 help: consider introducing lifetime `'undeclared` here
29 |
30 LL | fn iter<'undeclared, 'a>(&'a self) -> Self::Iter<'undeclared>;
31 | ^^^^^^^^^^^^
32
33 error: aborting due to 2 previous errors
34
35 For more information about this error, try `rustc --explain E0261`.