]>
Commit | Line | Data |
---|---|---|
32a655c1 | 1 | error[E0404]: expected trait, found type alias `Foo` |
0731742a | 2 | --> $DIR/issue-3907.rs:10:6 |
32a655c1 | 3 | | |
0531ce1d | 4 | LL | impl Foo for S { //~ ERROR expected trait, found type alias `Foo` |
a1dfa0c6 XL |
5 | | ^^^ type aliases cannot be used as traits |
6 | | | |
7 | = note: did you mean to use a trait alias? | |
7cac9316 | 8 | help: possible better candidate is found in another module, you can import it into scope |
041b39d2 | 9 | | |
0531ce1d | 10 | LL | use issue_3907::Foo; |
041b39d2 | 11 | | |
32a655c1 | 12 | |
0531ce1d | 13 | error: aborting due to previous error |
32a655c1 | 14 | |
0531ce1d | 15 | For more information about this error, try `rustc --explain E0404`. |