diff options
| author | bors <bors@rust-lang.org> | 2020-03-26 12:33:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-26 12:33:18 +0000 |
| commit | 2fbb07525e2f07a815e780a4268b11916248b5a9 (patch) | |
| tree | 45d6837d752b3628506e97f0ac317a258fa3619a /src/test/ui/specialization/defaultimpl/validation.stderr | |
| parent | 3b1d7351186a073c72e4be3c7d7b7ab8f1f10c58 (diff) | |
| parent | 608715bbd10ec9a088d46f03db9afa689bfb3c90 (diff) | |
| download | rust-2fbb07525e2f07a815e780a4268b11916248b5a9.tar.gz rust-2fbb07525e2f07a815e780a4268b11916248b5a9.zip | |
Auto merge of #70427 - Centril:rollup-lrcad2c, r=Centril
Rollup of 5 pull requests Successful merges: - #68004 (permit negative impls for non-auto traits) - #70385 (Miri nits: comment and var name improvement) - #70411 (Fix for #62691: use the largest niche across all fields) - #70417 (parser: recover on `...` as a pattern, suggesting `..`) - #70424 (simplify match stmt) Failed merges: r? @ghost
Diffstat (limited to 'src/test/ui/specialization/defaultimpl/validation.stderr')
| -rw-r--r-- | src/test/ui/specialization/defaultimpl/validation.stderr | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/test/ui/specialization/defaultimpl/validation.stderr b/src/test/ui/specialization/defaultimpl/validation.stderr index e03153f343b..9bf59bd4f63 100644 --- a/src/test/ui/specialization/defaultimpl/validation.stderr +++ b/src/test/ui/specialization/defaultimpl/validation.stderr @@ -24,14 +24,18 @@ LL | default impl !Send for Z {} | | | default because of this -error[E0192]: invalid negative impl - --> $DIR/validation.rs:13:14 +error[E0750]: negative impls cannot be default impls + --> $DIR/validation.rs:10:14 | -LL | default impl !Tr for S {} - | ^^^ +LL | default impl !Send for Z {} + | ^^^^^^^ ^ + +error[E0750]: negative impls cannot be default impls + --> $DIR/validation.rs:14:14 | - = note: negative impls are only allowed for auto traits, like `Send` and `Sync` +LL | default impl !Tr for S {} + | ^^^^^^^ ^ -error: aborting due to 4 previous errors +error: aborting due to 5 previous errors -For more information about this error, try `rustc --explain E0192`. +For more information about this error, try `rustc --explain E0750`. |
