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
2024-01-29 18:31:02 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Step` is not implemented for `impl Debug`, which is required by `std::ops::Range<impl Debug>: Iterator`
2023-10-31 13:45:26 +00:00
|
= help: the following other types implement trait `Step`:
2024-03-21 12:55:28 +00:00
Char
Ipv4Addr
Ipv6Addr
2023-10-31 13:45:26 +00:00
char
2024-03-21 12:55:28 +00:00
i128
2023-10-31 13:45:26 +00:00
i16
i32
i64
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 | | }
2024-01-29 18:31:02 +00:00
| |_^ the trait `Step` is not implemented for `impl Debug`, which is required by `std::ops::Range<impl Debug>: Iterator`
2023-10-31 13:45:26 +00:00
|
= help: the following other types implement trait `Step`:
2024-03-21 12:55:28 +00:00
Char
Ipv4Addr
Ipv6Addr
2023-10-31 13:45:26 +00:00
char
2024-03-21 12:55:28 +00:00
i128
2023-10-31 13:45:26 +00:00
i16
i32
i64
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`.