X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fcodemap_tests%2Ftwo_files.stderr;h=de2ffc2e5dc1d0e1e704c139262e638096c120d3;hb=6e3ba6f40fb30dcdbb553b7044ef45ec49745ac3;hp=5027b78b38e34181c271a35d50b75654df135543;hpb=82e90d64266b8a4b53935d629786e69610b33f25;p=rust.git diff --git a/src/test/ui/codemap_tests/two_files.stderr b/src/test/ui/codemap_tests/two_files.stderr index 5027b78b38e..de2ffc2e5dc 100644 --- a/src/test/ui/codemap_tests/two_files.stderr +++ b/src/test/ui/codemap_tests/two_files.stderr @@ -4,7 +4,11 @@ error[E0404]: expected trait, found type alias `Bar` LL | impl Bar for Baz { } | ^^^ type aliases cannot be used as traits | - = note: did you mean to use a trait alias? +help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias + --> $DIR/two_files_data.rs:5:1 + | +LL | type Bar = dyn Foo; + | ^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error