]> git.proxmox.com Git - rustc.git/blame - src/test/ui/resolve/issue-5035.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / resolve / issue-5035.stderr
CommitLineData
32a655c1 1error[E0432]: unresolved import `ImportError`
0731742a 2 --> $DIR/issue-5035.rs:5:5
32a655c1 3 |
532ac7d7 4LL | use ImportError;
32a655c1
SL
5 | ^^^^^^^^^^^ no `ImportError` in the root
6
7error[E0404]: expected trait, found type alias `K`
0731742a 8 --> $DIR/issue-5035.rs:3:6
32a655c1 9 |
e74abb32 10LL | trait I {}
ba9703b0 11 | ------- similarly named trait `I` defined here
e74abb32 12LL | type K = dyn I;
532ac7d7 13LL | 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 21error: aborting due to 2 previous errors
32a655c1 22
48663c56 23Some errors have detailed explanations: E0404, E0432.
0531ce1d 24For more information about an error, try `rustc --explain E0404`.