2018-02-08 16:50:14 -08:00
|
|
|
error[E0667]: `impl Trait` is not allowed in path parameters
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/impl_trait_projections.rs:12:51
|
2018-02-08 16:50:14 -08:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | fn projection_is_disallowed(x: impl Iterator) -> <impl Iterator>::Item {
|
2018-02-08 16:50:14 -08:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0667]: `impl Trait` is not allowed in path parameters
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/impl_trait_projections.rs:19:9
|
2018-02-08 16:50:14 -08:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | -> <impl Iterator as Iterator>::Item
|
2018-02-08 16:50:14 -08:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0667]: `impl Trait` is not allowed in path parameters
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/impl_trait_projections.rs:26:27
|
2018-02-08 16:50:14 -08:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | -> <::std::ops::Range<impl Debug> as Iterator>::Item
|
2018-02-08 16:50:14 -08:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2018-02-13 17:52:22 -08:00
|
|
|
error[E0667]: `impl Trait` is not allowed in path parameters
|
2023-10-31 13:45:26 +00:00
|
|
|
--> $DIR/impl_trait_projections.rs:35:29
|
2018-02-13 17:52:22 -08:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | -> <dyn Iterator<Item = impl Debug> as Iterator>::Item
|
2018-02-13 17:52:22 -08:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2023-01-08 06:54:52 +00:00
|
|
|
error[E0667]: `impl Trait` is not allowed in path parameters
|
|
|
|
--> $DIR/impl_trait_projections.rs:12:51
|
2018-02-08 16:50:14 -08:00
|
|
|
|
|
2018-02-25 02:59:34 +03:00
|
|
|
LL | fn projection_is_disallowed(x: impl Iterator) -> <impl Iterator>::Item {
|
2023-01-08 06:54:52 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2018-02-08 16:50:14 -08:00
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
error[E0277]: the trait bound `impl Debug: Step` is not satisfied
|
|
|
|
--> $DIR/impl_trait_projections.rs:26:8
|
|
|
|
|
|
|
|
|
LL | -> <::std::ops::Range<impl Debug> as Iterator>::Item
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Step` is not implemented for `impl Debug`
|
|
|
|
|
|
|
|
|
= help: the following other types implement trait `Step`:
|
|
|
|
char
|
|
|
|
isize
|
|
|
|
i8
|
|
|
|
i16
|
|
|
|
i32
|
|
|
|
i64
|
|
|
|
i128
|
|
|
|
usize
|
|
|
|
and 8 others
|
|
|
|
= note: required for `std::ops::Range<impl Debug>` to implement `Iterator`
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `impl Debug: Step` is not satisfied
|
|
|
|
--> $DIR/impl_trait_projections.rs:29:1
|
|
|
|
|
|
|
|
|
LL | / {
|
|
|
|
LL | |
|
|
|
|
LL | | (1i32..100).next().unwrap()
|
|
|
|
LL | | }
|
|
|
|
| |_^ the trait `Step` is not implemented for `impl Debug`
|
|
|
|
|
|
|
|
|
= help: the following other types implement trait `Step`:
|
|
|
|
char
|
|
|
|
isize
|
|
|
|
i8
|
|
|
|
i16
|
|
|
|
i32
|
|
|
|
i64
|
|
|
|
i128
|
|
|
|
usize
|
|
|
|
and 8 others
|
|
|
|
= note: required for `std::ops::Range<impl Debug>` to implement `Iterator`
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2018-02-08 16:50:14 -08:00
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
Some errors have detailed explanations: E0277, E0667.
|
|
|
|
For more information about an error, try `rustc --explain E0277`.
|