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