fork/rust

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

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

master
433 B15 linesraw
1error[E0404]: expected trait, found type alias `Bar`
2  --> $DIR/two_files.rs:5:6
3   |
4LL | impl Bar for Baz { }
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  --> $DIR/two_files_data.rs:5:1
9   |
10LL | trait Bar = dyn Foo;
11   |
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0404`.