]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-47715.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-47715.stderr
1 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
2   --> $DIR/issue-47715.rs:19:37
3    |
4 LL | struct Container<T: Iterable<Item = impl Foo>> {
5    |                                     ^^^^^^^^
6
7 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
8   --> $DIR/issue-47715.rs:24:30
9    |
10 LL | enum Enum<T: Iterable<Item = impl Foo>> {
11    |                              ^^^^^^^^
12
13 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
14   --> $DIR/issue-47715.rs:29:32
15    |
16 LL | union Union<T: Iterable<Item = impl Foo> + Copy> {
17    |                                ^^^^^^^^
18
19 error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
20   --> $DIR/issue-47715.rs:34:30
21    |
22 LL | type Type<T: Iterable<Item = impl Foo>> = T;
23    |                              ^^^^^^^^
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0562`.