diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2023-01-13 16:54:22 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-13 16:54:22 +0900 |
| commit | 9a2f3937fc52fcc76f13374e73b6339e7fbeb59c (patch) | |
| tree | fd99f71b00fa0d294d58fe7d46422911e2aadd2c /tests/ui/parser | |
| parent | 279f1c9d8c26a8d227ae8ab806d262bb784b251b (diff) | |
| parent | bf0623e3633a371374341265c8729f6255bfde4c (diff) | |
| download | rust-9a2f3937fc52fcc76f13374e73b6339e7fbeb59c.tar.gz rust-9a2f3937fc52fcc76f13374e73b6339e7fbeb59c.zip | |
Rollup merge of #106608 - compiler-errors:missing-generics-verbose, r=estebank
Render missing generics suggestion verbosely It's a bit easier to read like this, especially ones that are appending new generics onto an existing list, like ": `, T`" which render somewhat poorly inline. Also don't suggest `dyn` as a type parameter to add, even if technically that's valid in edition 2015.
Diffstat (limited to 'tests/ui/parser')
| -rw-r--r-- | tests/ui/parser/dyn-trait-compatibility.stderr | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/ui/parser/dyn-trait-compatibility.stderr b/tests/ui/parser/dyn-trait-compatibility.stderr index 9218ae9d5da..0cae01bd1e3 100644 --- a/tests/ui/parser/dyn-trait-compatibility.stderr +++ b/tests/ui/parser/dyn-trait-compatibility.stderr @@ -26,17 +26,13 @@ error[E0412]: cannot find type `dyn` in this scope --> $DIR/dyn-trait-compatibility.rs:5:15 | LL | type A2 = dyn<dyn, dyn>; - | - ^^^ not found in this scope - | | - | help: you might be missing a type parameter: `<dyn>` + | ^^^ not found in this scope error[E0412]: cannot find type `dyn` in this scope --> $DIR/dyn-trait-compatibility.rs:5:20 | LL | type A2 = dyn<dyn, dyn>; - | - ^^^ not found in this scope - | | - | help: you might be missing a type parameter: `<dyn>` + | ^^^ not found in this scope error[E0412]: cannot find type `dyn` in this scope --> $DIR/dyn-trait-compatibility.rs:9:11 @@ -48,9 +44,7 @@ error[E0412]: cannot find type `dyn` in this scope --> $DIR/dyn-trait-compatibility.rs:9:16 | LL | type A3 = dyn<<dyn as dyn>::dyn>; - | - ^^^ not found in this scope - | | - | help: you might be missing a type parameter: `<dyn>` + | ^^^ not found in this scope error: aborting due to 8 previous errors |
