]>
Commit | Line | Data |
---|---|---|
32a655c1 | 1 | error[E0432]: unresolved import `ImportError` |
0731742a | 2 | --> $DIR/issue-5035.rs:5:5 |
32a655c1 | 3 | | |
532ac7d7 | 4 | LL | use ImportError; |
32a655c1 SL |
5 | | ^^^^^^^^^^^ no `ImportError` in the root |
6 | ||
7 | error[E0404]: expected trait, found type alias `K` | |
0731742a | 8 | --> $DIR/issue-5035.rs:3:6 |
32a655c1 | 9 | | |
e74abb32 | 10 | LL | trait I {} |
ba9703b0 | 11 | | ------- similarly named trait `I` defined here |
e74abb32 | 12 | LL | type K = dyn I; |
532ac7d7 | 13 | LL | impl K for isize {} |
7cac9316 XL |
14 | | ^ |
15 | | | | |
a1dfa0c6 | 16 | | type aliases cannot be used as traits |
0731742a | 17 | | help: a trait with a similar name exists: `I` |
a1dfa0c6 XL |
18 | | |
19 | = note: did you mean to use a trait alias? | |
32a655c1 | 20 | |
0531ce1d | 21 | error: aborting due to 2 previous errors |
32a655c1 | 22 | |
48663c56 | 23 | Some errors have detailed explanations: E0404, E0432. |
0531ce1d | 24 | For more information about an error, try `rustc --explain E0404`. |