]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/manual_non_exhaustive_enum.stderr
Rollup merge of #99070 - tamird:update-tracking-issue, r=RalfJung
[rust.git] / src / tools / clippy / tests / ui / manual_non_exhaustive_enum.stderr
1 error: this seems like a manual implementation of the non-exhaustive pattern
2   --> $DIR/manual_non_exhaustive_enum.rs:5:1
3    |
4 LL |   enum E {
5    |   ^-----
6    |   |
7    |  _help: add the attribute: `#[non_exhaustive] enum E`
8    | |
9 LL | |     A,
10 LL | |     B,
11 LL | |     #[doc(hidden)]
12 LL | |     _C,
13 LL | | }
14    | |_^
15    |
16    = note: `-D clippy::manual-non-exhaustive` implied by `-D warnings`
17 help: remove this variant
18   --> $DIR/manual_non_exhaustive_enum.rs:9:5
19    |
20 LL |     _C,
21    |     ^^
22
23 error: this seems like a manual implementation of the non-exhaustive pattern
24   --> $DIR/manual_non_exhaustive_enum.rs:14:1
25    |
26 LL | / enum Ep {
27 LL | |     A,
28 LL | |     B,
29 LL | |     #[doc(hidden)]
30 LL | |     _C,
31 LL | | }
32    | |_^
33    |
34 help: remove this variant
35   --> $DIR/manual_non_exhaustive_enum.rs:18:5
36    |
37 LL |     _C,
38    |     ^^
39
40 error: aborting due to 2 previous errors
41