diff options
| author | mu001999 <mu001999@outlook.com> | 2024-07-04 22:05:00 +0800 |
|---|---|---|
| committer | mu001999 <mu001999@outlook.com> | 2024-07-04 22:05:00 +0800 |
| commit | 0adb82528fa00467a3f14a282f4581bb30f91aba (patch) | |
| tree | cf149f988888458f03ef2da995c6948c8343c326 /tests/ui/impl-trait/extra-impl-in-trait-impl.stderr | |
| parent | bae813a265014c22c37457ccf0d29fc6822b88da (diff) | |
| download | rust-0adb82528fa00467a3f14a282f4581bb30f91aba.tar.gz rust-0adb82528fa00467a3f14a282f4581bb30f91aba.zip | |
Improve dead code analysis
Diffstat (limited to 'tests/ui/impl-trait/extra-impl-in-trait-impl.stderr')
| -rw-r--r-- | tests/ui/impl-trait/extra-impl-in-trait-impl.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/impl-trait/extra-impl-in-trait-impl.stderr b/tests/ui/impl-trait/extra-impl-in-trait-impl.stderr index 5aafc8b64d4..91c7da5a04f 100644 --- a/tests/ui/impl-trait/extra-impl-in-trait-impl.stderr +++ b/tests/ui/impl-trait/extra-impl-in-trait-impl.stderr @@ -1,23 +1,23 @@ error: unexpected `impl` keyword - --> $DIR/extra-impl-in-trait-impl.rs:6:18 + --> $DIR/extra-impl-in-trait-impl.rs:8:18 | LL | impl<T: Default> impl Default for S<T> { | ^^^^^ help: remove the extra `impl` | note: this is parsed as an `impl Trait` type, but a trait is expected at this position - --> $DIR/extra-impl-in-trait-impl.rs:6:18 + --> $DIR/extra-impl-in-trait-impl.rs:8:18 | LL | impl<T: Default> impl Default for S<T> { | ^^^^^^^^^^^^ error: unexpected `impl` keyword - --> $DIR/extra-impl-in-trait-impl.rs:12:6 + --> $DIR/extra-impl-in-trait-impl.rs:14:6 | LL | impl impl Default for S2 { | ^^^^^ help: remove the extra `impl` | note: this is parsed as an `impl Trait` type, but a trait is expected at this position - --> $DIR/extra-impl-in-trait-impl.rs:12:6 + --> $DIR/extra-impl-in-trait-impl.rs:14:6 | LL | impl impl Default for S2 { | ^^^^^^^^^^^^ |
