]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-5035.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / 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    |      ^ type aliases cannot be used as traits
15    |
16 help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
17    |
18 LL | trait K = dyn I;
19    |
20 help: a trait with a similar name exists
21    |
22 LL | impl I for isize {}
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`.