fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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