]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-5035.stderr
Tweak some suggestions in `rustc_resolve`
[rust.git] / src / test / ui / resolve / issue-5035.stderr
1 error[E0432]: unresolved import `ImportError`
2   --> $DIR/issue-5035.rs:5:5
3    |
4 LL | use ImportError;
5    |     ^^^^^^^^^^^ no `ImportError` in the root
6
7 error[E0404]: expected trait, found type alias `K`
8   --> $DIR/issue-5035.rs:3:6
9    |
10 LL | trait I {}
11    | ------- similarly named trait `I` defined here
12 LL | type K = dyn I;
13 LL | 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 help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
20   --> $DIR/issue-5035.rs:2:1
21    |
22 LL | type K = dyn I;
23    | ^^^^^^^^^^^^^^^
24
25 error: aborting due to 2 previous errors
26
27 Some errors have detailed explanations: E0404, E0432.
28 For more information about an error, try `rustc --explain E0404`.