diff options
| author | David Koloski <dkoloski@google.com> | 2022-03-08 19:57:03 +0000 |
|---|---|---|
| committer | David Koloski <dkoloski@google.com> | 2022-03-08 19:57:03 +0000 |
| commit | 1c31a95df7de66dc7842b43facf185ef8a776e6f (patch) | |
| tree | abfa045bd8e5164afb331f70be6e013e1d8defd4 | |
| parent | fa10d90b9974844790b0ad98fa5c50fae80ee166 (diff) | |
| download | rust-1c31a95df7de66dc7842b43facf185ef8a776e6f.tar.gz rust-1c31a95df7de66dc7842b43facf185ef8a776e6f.zip | |
Update for changes to other lints
| -rw-r--r-- | src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr b/src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr index 7f82fbdea4e..dbeef6c2d2a 100644 --- a/src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr +++ b/src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr @@ -102,17 +102,22 @@ LL | #[warn(non_exhaustive_omitted_patterns)] error[E0004]: non-exhaustive patterns: `C` not covered --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:20:11 | -LL | / enum Foo { -LL | | A, B, C, - | | - not covered -LL | | } - | |_____- `Foo` defined here -... -LL | match Foo::A { - | ^^^^^^ pattern `C` not covered - | - = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms +LL | match Foo::A { + | ^^^^^^ pattern `C` not covered + | +note: `Foo` defined here + --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:12:15 + | +LL | enum Foo { + | --- +LL | A, B, C, + | ^ not covered = note: the matched value is of type `Foo` +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown + | +LL ~ Foo::B => {} +LL + C => todo!() + | error: aborting due to previous error; 10 warnings emitted |
