]> git.lizzy.rs Git - rust.git/blob - tests/ui/codemap_tests/two_files.stderr
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / codemap_tests / two_files.stderr
1 error[E0404]: expected trait, found type alias `Bar`
2   --> $DIR/two_files.rs:5:6
3    |
4 LL | impl Bar for Baz { }
5    |      ^^^ type aliases cannot be used as traits
6    |
7 help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
8   --> $DIR/two_files_data.rs:5:1
9    |
10 LL | trait Bar = dyn Foo;
11    |
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0404`.