diff options
Diffstat (limited to 'src/test/ui/codemap_tests/two_files.stderr')
-rw-r--r-- | src/test/ui/codemap_tests/two_files.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/codemap_tests/two_files.stderr b/src/test/ui/codemap_tests/two_files.stderr new file mode 100644 index 000000000..2eb3fd567 --- /dev/null +++ b/src/test/ui/codemap_tests/two_files.stderr @@ -0,0 +1,15 @@ +error[E0404]: expected trait, found type alias `Bar` + --> $DIR/two_files.rs:5:6 + | +LL | impl Bar for Baz { } + | ^^^ type aliases cannot be used as traits + | +help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias + --> $DIR/two_files_data.rs:5:1 + | +LL | trait Bar = dyn Foo; + | + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0404`. |