summaryrefslogtreecommitdiff
path: root/src/test/ui/rfc1598-generic-associated-types/generic_associated_type_undeclared_lifetimes.stderr
blob: 3cebab6389557db0e6828df279995fd2a89485e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
warning: the feature `generic_associated_types` is incomplete and may cause the compiler to crash
  --> $DIR/generic_associated_type_undeclared_lifetimes.rs:1:12
   |
LL | #![feature(generic_associated_types)]
   |            ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0261]: use of undeclared lifetime name `'b`
  --> $DIR/generic_associated_type_undeclared_lifetimes.rs:13:37
   |
LL |         + Deref<Target = Self::Item<'b>>;
   |                                     ^^ undeclared lifetime

error[E0261]: use of undeclared lifetime name `'undeclared`
  --> $DIR/generic_associated_type_undeclared_lifetimes.rs:17:41
   |
LL |     fn iter<'a>(&'a self) -> Self::Iter<'undeclared>;
   |                                         ^^^^^^^^^^^ undeclared lifetime

error[E0110]: lifetime arguments are not allowed on this entity
  --> $DIR/generic_associated_type_undeclared_lifetimes.rs:11:47
   |
LL |     type Iter<'a>: Iterator<Item = Self::Item<'a>>
   |                                               ^^ lifetime argument not allowed

error[E0110]: lifetime arguments are not allowed on this entity
  --> $DIR/generic_associated_type_undeclared_lifetimes.rs:13:37
   |
LL |         + Deref<Target = Self::Item<'b>>;
   |                                     ^^ lifetime argument not allowed

error[E0110]: lifetime arguments are not allowed on this entity
  --> $DIR/generic_associated_type_undeclared_lifetimes.rs:17:41
   |
LL |     fn iter<'a>(&'a self) -> Self::Iter<'undeclared>;
   |                                         ^^^^^^^^^^^ lifetime argument not allowed

error: aborting due to 5 previous errors

Some errors occurred: E0110, E0261.
For more information about an error, try `rustc --explain E0110`.