summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr')
-rw-r--r--src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr b/src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr
index 7361a4a2c..c4b13a577 100644
--- a/src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr
+++ b/src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr
@@ -22,5 +22,26 @@ LL | _C,
= note: `-D clippy::manual-non-exhaustive` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_non_exhaustive)]`
-error: aborting due to previous error
+error: this seems like a manual implementation of the non-exhaustive pattern
+ --> $DIR/manual_non_exhaustive_enum.rs:30:1
+ |
+LL | enum NoUnderscore {
+ | ^----------------
+ | |
+ | _help: add the attribute: `#[non_exhaustive] enum NoUnderscore`
+ | |
+LL | | A,
+LL | | B,
+LL | | #[doc(hidden)]
+LL | | C,
+LL | | }
+ | |_^
+ |
+help: remove this variant
+ --> $DIR/manual_non_exhaustive_enum.rs:34:5
+ |
+LL | C,
+ | ^
+
+error: aborting due to 2 previous errors