summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr
blob: 7361a4a2cbbe8a1d4e42233bee4798940e4b395c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
error: this seems like a manual implementation of the non-exhaustive pattern
  --> $DIR/manual_non_exhaustive_enum.rs:5:1
   |
LL |   enum E {
   |   ^-----
   |   |
   |  _help: add the attribute: `#[non_exhaustive] enum E`
   | |
LL | |
LL | |     A,
LL | |     B,
LL | |     #[doc(hidden)]
LL | |     _C,
LL | | }
   | |_^
   |
help: remove this variant
  --> $DIR/manual_non_exhaustive_enum.rs:10:5
   |
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