fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1017 B27 linesraw
1error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
2  --> $DIR/issue-47715.rs:9:37
3   |
4LL | struct Container<T: Iterable<Item = impl Foo>> {
5   |                                     ^^^^^^^^
6
7error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
8  --> $DIR/issue-47715.rs:14:30
9   |
10LL | enum Enum<T: Iterable<Item = impl Foo>> {
11   |                              ^^^^^^^^
12
13error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
14  --> $DIR/issue-47715.rs:19:32
15   |
16LL | union Union<T: Iterable<Item = impl Foo> + Copy> {
17   |                                ^^^^^^^^
18
19error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
20  --> $DIR/issue-47715.rs:24:30
21   |
22LL | type Type<T: Iterable<Item = impl Foo>> = T;
23   |                              ^^^^^^^^
24
25error: aborting due to 4 previous errors
26
27For more information about this error, try `rustc --explain E0562`.