diff options
| author | bors <bors@rust-lang.org> | 2021-05-03 00:17:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-03 00:17:16 +0000 |
| commit | 59f551a2dcf57c0d3d96ac5ef60e000524210469 (patch) | |
| tree | df03e623e18dfb1926e55323d19c491281f22ed9 /src/test/ui/pattern/pattern-error-continue.stderr | |
| parent | 8a8ed078832da1910dc9473bafb1bc2635a6c758 (diff) | |
| parent | 83c49d09b776038d97b8a45c7269bd686b16ec9a (diff) | |
| download | rust-59f551a2dcf57c0d3d96ac5ef60e000524210469.tar.gz rust-59f551a2dcf57c0d3d96ac5ef60e000524210469.zip | |
Auto merge of #84840 - Dylan-DPC:rollup-uzk7w0h, r=Dylan-DPC
Rollup of 6 pull requests Successful merges: - #84072 (Allow setting `target_family` to multiple values, and implement `target_family="wasm"`) - #84744 (Add ErrorKind::OutOfMemory) - #84784 (Add help message to suggest const for unused type param) - #84811 (RustDoc: Fix bounds linking trait.Foo instead of traitalias.Foo) - #84818 (suggestion for unit enum variant when matched with a patern) - #84832 (Do not print visibility in external traits) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/ui/pattern/pattern-error-continue.stderr')
| -rw-r--r-- | src/test/ui/pattern/pattern-error-continue.stderr | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/test/ui/pattern/pattern-error-continue.stderr b/src/test/ui/pattern/pattern-error-continue.stderr index 497c93b2949..44d6a854b3d 100644 --- a/src/test/ui/pattern/pattern-error-continue.stderr +++ b/src/test/ui/pattern/pattern-error-continue.stderr @@ -9,11 +9,21 @@ error[E0532]: expected tuple struct or tuple variant, found unit variant `A::D` | LL | B(isize, isize), | --------------- similarly named tuple variant `B` defined here +LL | C(isize, isize, isize), +LL | D + | - `A::D` defined here ... LL | A::D(_) => (), - | ^^^- - | | - | help: a tuple variant with a similar name exists: `B` + | ^^^^^^^ + | +help: use this syntax instead + | +LL | A::D => (), + | ^^^^ +help: a tuple variant with a similar name exists + | +LL | A::B(_) => (), + | ^ error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields --> $DIR/pattern-error-continue.rs:17:9 |
