]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc1598-generic-associated-types/collections.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / rfc1598-generic-associated-types / collections.stderr
1 warning: the feature `generic_associated_types` is incomplete and may cause the compiler to crash
2   --> $DIR/collections.rs:11:12
3    |
4 LL | #![feature(generic_associated_types)]
5    |            ^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error[E0109]: type parameters are not allowed on this type
8   --> $DIR/collections.rs:66:90
9    |
10 LL | fn floatify<C>(ints: &C) -> <<C as Collection<i32>>::Family as CollectionFamily>::Member<f32>
11    |                                                                                          ^^^ type parameter not allowed
12
13 error[E0109]: type parameters are not allowed on this type
14   --> $DIR/collections.rs:78:69
15    |
16 LL | fn floatify_sibling<C>(ints: &C) -> <C as Collection<i32>>::Sibling<f32>
17    |                                                                     ^^^ type parameter not allowed
18
19 error[E0109]: type parameters are not allowed on this type
20   --> $DIR/collections.rs:27:71
21    |
22 LL |         <<Self as Collection<T>>::Family as CollectionFamily>::Member<U>;
23    |                                                                       ^ type parameter not allowed
24
25 error[E0110]: lifetime parameters are not allowed on this type
26   --> $DIR/collections.rs:34:50
27    |
28 LL |     fn iterate<'iter>(&'iter self) -> Self::Iter<'iter>;
29    |                                                  ^^^^^ lifetime parameter not allowed
30
31 error[E0110]: lifetime parameters are not allowed on this type
32   --> $DIR/collections.rs:60:50
33    |
34 LL |     fn iterate<'iter>(&'iter self) -> Self::Iter<'iter> {
35    |                                                  ^^^^^ lifetime parameter not allowed
36
37 error: aborting due to 5 previous errors
38
39 Some errors occurred: E0109, E0110.
40 For more information about an error, try `rustc --explain E0109`.