]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc1598-generic-associated-types/iterable.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / rfc1598-generic-associated-types / iterable.stderr
1 warning: the feature `generic_associated_types` is incomplete and may cause the compiler to crash
2   --> $DIR/iterable.rs:11:12
3    |
4 LL | #![feature(generic_associated_types)]
5    |            ^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error[E0110]: lifetime parameters are not allowed on this type
8   --> $DIR/iterable.rs:21:47
9    |
10 LL |     type Iter<'a>: Iterator<Item = Self::Item<'a>>;
11    |                                               ^^ lifetime parameter not allowed
12
13 error[E0110]: lifetime parameters are not allowed on this type
14   --> $DIR/iterable.rs:50:53
15    |
16 LL | fn make_iter<'a, I: Iterable>(it: &'a I) -> I::Iter<'a> {
17    |                                                     ^^ lifetime parameter not allowed
18
19 error[E0110]: lifetime parameters are not allowed on this type
20   --> $DIR/iterable.rs:55:60
21    |
22 LL | fn get_first<'a, I: Iterable>(it: &'a I) -> Option<I::Item<'a>> {
23    |                                                            ^^ lifetime parameter not allowed
24
25 error[E0110]: lifetime parameters are not allowed on this type
26   --> $DIR/iterable.rs:24:41
27    |
28 LL |     fn iter<'a>(&'a self) -> Self::Iter<'a>;
29    |                                         ^^ lifetime parameter not allowed
30
31 error[E0110]: lifetime parameters are not allowed on this type
32   --> $DIR/iterable.rs:33:41
33    |
34 LL |     fn iter<'a>(&'a self) -> Self::Iter<'a> {
35    |                                         ^^ lifetime parameter not allowed
36
37 error[E0110]: lifetime parameters are not allowed on this type
38   --> $DIR/iterable.rs:44:41
39    |
40 LL |     fn iter<'a>(&'a self) -> Self::Iter<'a> {
41    |                                         ^^ lifetime parameter not allowed
42
43 error: aborting due to 6 previous errors
44
45 For more information about this error, try `rustc --explain E0110`.