]>
Commit | Line | Data |
---|---|---|
0531ce1d | 1 | error[E0667]: `impl Trait` is not allowed in path parameters |
83c7162d | 2 | --> $DIR/impl_trait_projections.rs:21:51 |
0531ce1d XL |
3 | | |
4 | LL | fn projection_is_disallowed(x: impl Iterator) -> <impl Iterator>::Item { | |
5 | | ^^^^^^^^^^^^^ | |
6 | ||
7 | error[E0667]: `impl Trait` is not allowed in path parameters | |
83c7162d | 8 | --> $DIR/impl_trait_projections.rs:28:9 |
0531ce1d XL |
9 | | |
10 | LL | -> <impl Iterator as Iterator>::Item | |
11 | | ^^^^^^^^^^^^^ | |
12 | ||
13 | error[E0667]: `impl Trait` is not allowed in path parameters | |
83c7162d | 14 | --> $DIR/impl_trait_projections.rs:35:27 |
0531ce1d XL |
15 | | |
16 | LL | -> <::std::ops::Range<impl Debug> as Iterator>::Item | |
17 | | ^^^^^^^^^^ | |
18 | ||
19 | error[E0667]: `impl Trait` is not allowed in path parameters | |
83c7162d | 20 | --> $DIR/impl_trait_projections.rs:42:29 |
0531ce1d XL |
21 | | |
22 | LL | -> <dyn Iterator<Item = impl Debug> as Iterator>::Item | |
23 | | ^^^^^^^^^^ | |
24 | ||
25 | error[E0223]: ambiguous associated type | |
83c7162d | 26 | --> $DIR/impl_trait_projections.rs:21:50 |
0531ce1d XL |
27 | | |
28 | LL | fn projection_is_disallowed(x: impl Iterator) -> <impl Iterator>::Item { | |
29 | | ^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type | |
30 | | | |
31 | = note: specify the type using the syntax `<impl std::iter::Iterator as Trait>::Item` | |
32 | ||
33 | error: aborting due to 5 previous errors | |
34 | ||
35 | Some errors occurred: E0223, E0667. | |
36 | For more information about an error, try `rustc --explain E0223`. |