summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr
blob: 144fe86df554ba41d59b64704728ed52668968b6 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 | |     A,
LL | |     B,
LL | |     #[doc(hidden)]
LL | |     _C,
LL | | }
   | |_^
   |
   = note: `-D clippy::manual-non-exhaustive` implied by `-D warnings`
help: remove this variant
  --> $DIR/manual_non_exhaustive_enum.rs:9:5
   |
LL |     _C,
   |     ^^

error: this seems like a manual implementation of the non-exhaustive pattern
  --> $DIR/manual_non_exhaustive_enum.rs:14:1
   |
LL | / enum Ep {
LL | |     A,
LL | |     B,
LL | |     #[doc(hidden)]
LL | |     _C,
LL | | }
   | |_^
   |
help: remove this variant
  --> $DIR/manual_non_exhaustive_enum.rs:18:5
   |
LL |     _C,
   |     ^^

error: aborting due to 2 previous errors