]>
Commit | Line | Data |
---|---|---|
32a655c1 | 1 | error[E0404]: expected trait, found type alias `Foo` |
532ac7d7 | 2 | --> $DIR/issue-3907.rs:11:6 |
32a655c1 | 3 | | |
532ac7d7 | 4 | LL | impl Foo for S { |
a1dfa0c6 XL |
5 | | ^^^ type aliases cannot be used as traits |
6 | | | |
f9f354fc | 7 | help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias |
f9f354fc | 8 | | |
cdc7bbd5 XL |
9 | LL | trait Foo = dyn issue_3907::Foo; |
10 | | | |
f9f354fc | 11 | help: consider importing this trait instead |
041b39d2 | 12 | | |
0531ce1d | 13 | LL | use issue_3907::Foo; |
041b39d2 | 14 | | |
32a655c1 | 15 | |
0531ce1d | 16 | error: aborting due to previous error |
32a655c1 | 17 | |
0531ce1d | 18 | For more information about this error, try `rustc --explain E0404`. |