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 /src | |
| 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 'src')
| -rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-6252.stderr | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-6252.stderr b/src/tools/clippy/tests/ui/crashes/ice-6252.stderr index 638e4a54849..efdd56dd47d 100644 --- a/src/tools/clippy/tests/ui/crashes/ice-6252.stderr +++ b/src/tools/clippy/tests/ui/crashes/ice-6252.stderr @@ -17,9 +17,12 @@ error[E0412]: cannot find type `VAL` in this scope --> $DIR/ice-6252.rs:10:63 | LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {} - | - ^^^ not found in this scope - | | - | help: you might be missing a type parameter: `, VAL` + | ^^^ not found in this scope + | +help: you might be missing a type parameter + | +LL | impl<N, M, VAL> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {} + | +++++ error[E0046]: not all trait items implemented, missing: `VAL` --> $DIR/ice-6252.rs:10:1 |
