fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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