diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-04-01 08:37:29 +0900 |
|---|---|---|
| committer | Yuki Okushi <jtitor@2k36.org> | 2021-04-01 09:53:46 +0900 |
| commit | 539242a07b15ec95aa196bfa4c18f6a8b01b8ecb (patch) | |
| tree | 3cdc1a1dc97c48527b0bdc70e7cff79da9d54790 /src/test/ui/codemap_tests | |
| parent | a5029ac0ab372aec515db2e718da6d7787f3d122 (diff) | |
| download | rust-539242a07b15ec95aa196bfa4c18f6a8b01b8ecb.tar.gz rust-539242a07b15ec95aa196bfa4c18f6a8b01b8ecb.zip | |
Add a suggestion when using a type alias instead of trait alias
Diffstat (limited to 'src/test/ui/codemap_tests')
| -rw-r--r-- | src/test/ui/codemap_tests/two_files.stderr | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/ui/codemap_tests/two_files.stderr b/src/test/ui/codemap_tests/two_files.stderr index de2ffc2e5dc..aff51ee9e2f 100644 --- a/src/test/ui/codemap_tests/two_files.stderr +++ b/src/test/ui/codemap_tests/two_files.stderr @@ -5,10 +5,9 @@ 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 | type Bar = dyn Foo; - | ^^^^^^^^^^^^^^^^^^^ +LL | trait Bar = dyn Foo; + | error: aborting due to previous error |
