diff options
| author | bors <bors@rust-lang.org> | 2020-03-23 12:40:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-23 12:40:36 +0000 |
| commit | 8549cfed4bbcdd28ef3a36e5de72c000e32f650e (patch) | |
| tree | 8767b779bc071839adf90065d75c6d4484634190 /src/test/ui/error-codes | |
| parent | 5aa8f199c398644d9fc2bb9ac8cffd14f985686d (diff) | |
| parent | b8f98662577f5423e2a2c4ffdfafbad9e4526058 (diff) | |
| download | rust-8549cfed4bbcdd28ef3a36e5de72c000e32f650e.tar.gz rust-8549cfed4bbcdd28ef3a36e5de72c000e32f650e.zip | |
Auto merge of #69649 - estebank:negative-impl-span, r=Centril
Tweak output for invalid negative impl errors
Follow up to #69722. Tweak negative impl errors emitted in the HIR:
```
error[E0192]: invalid negative impl
--> $DIR/E0192.rs:9:6
|
LL | impl !Trait for Foo { }
| ^^^^^^
|
= note: negative impls are only allowed for auto traits, like `Send` and `Sync`
```
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0192.stderr | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/ui/error-codes/E0192.stderr b/src/test/ui/error-codes/E0192.stderr index 8faa550a509..da706dea167 100644 --- a/src/test/ui/error-codes/E0192.stderr +++ b/src/test/ui/error-codes/E0192.stderr @@ -1,8 +1,10 @@ -error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`) - --> $DIR/E0192.rs:9:1 +error[E0192]: invalid negative impl + --> $DIR/E0192.rs:9:6 | LL | impl !Trait for Foo { } - | ^^^^^^^^^^^^^^^^^^^^^^^ + | ^^^^^^ + | + = note: negative impls are only allowed for auto traits, like `Send` and `Sync` error: aborting due to previous error |
