fork/rust

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

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

master
1.1 KiB27 linesraw
1error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in generics
2  --> $DIR/issue-47715.rs:9:37
3   |
4LL | struct Container<T: Iterable<Item = impl Foo>> {
5   |                                     ^^^^^^^^
6
7error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in generics
8  --> $DIR/issue-47715.rs:14:30
9   |
10LL | enum Enum<T: Iterable<Item = impl Foo>> {
11   |                              ^^^^^^^^
12
13error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in generics
14  --> $DIR/issue-47715.rs:19:32
15   |
16LL | union Union<T: Iterable<Item = impl Foo> + Copy> {
17   |                                ^^^^^^^^
18
19error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in generics
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`.