fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
1.3 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[E0223]: ambiguous associated type
26  --> $DIR/impl_trait_projections.rs:12:50
27   |
28LL | fn projection_is_disallowed(x: impl Iterator) -> <impl Iterator>::Item {
29   |                                                  ^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<impl std::iter::Iterator as Trait>::Item`
30
31error: aborting due to 5 previous errors
32
33For more information about this error, try `rustc --explain E0223`.