fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB33 linesraw
1error[E0667]: `impl Trait` is not allowed in path parameters
2  --> $DIR/impl_trait_projections.rs:12:51
3   |
4LL | fn projection_is_disallowed(x: impl Iterator) -> <impl Iterator>::Item {
5   |                                                   ^^^^^^^^^^^^^
6
7error[E0667]: `impl Trait` is not allowed in path parameters
8  --> $DIR/impl_trait_projections.rs:19:9
9   |
10LL |     -> <impl Iterator as Iterator>::Item
11   |         ^^^^^^^^^^^^^
12
13error[E0667]: `impl Trait` is not allowed in path parameters
14  --> $DIR/impl_trait_projections.rs:26:27
15   |
16LL |     -> <::std::ops::Range<impl Debug> as Iterator>::Item
17   |                           ^^^^^^^^^^
18
19error[E0667]: `impl Trait` is not allowed in path parameters
20  --> $DIR/impl_trait_projections.rs:33:29
21   |
22LL |     -> <dyn Iterator<Item = impl Debug> as Iterator>::Item
23   |                             ^^^^^^^^^^
24
25error[E0667]: `impl Trait` is not allowed in path parameters
26  --> $DIR/impl_trait_projections.rs:12:51
27   |
28LL | fn projection_is_disallowed(x: impl Iterator) -> <impl Iterator>::Item {
29   |                                                   ^^^^^^^^^^^^^
30
31error: aborting due to 5 previous errors
32
33For more information about this error, try `rustc --explain E0667`.