]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/manual_non_exhaustive.stderr
New upstream version 1.49.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / manual_non_exhaustive.stderr
1 error: this seems like a manual implementation of the non-exhaustive pattern
2 --> $DIR/manual_non_exhaustive.rs:5:5
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.rs:9:9
19 |
20 LL | _C,
21 | ^^
22
23 error: this seems like a manual implementation of the non-exhaustive pattern
24 --> $DIR/manual_non_exhaustive.rs:14:5
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.rs:18:9
36 |
37 LL | _C,
38 | ^^
39
40 error: this seems like a manual implementation of the non-exhaustive pattern
41 --> $DIR/manual_non_exhaustive.rs:68:5
42 |
43 LL | struct S {
44 | ^-------
45 | |
46 | _____help: add the attribute: `#[non_exhaustive] struct S`
47 | |
48 LL | | pub a: i32,
49 LL | | pub b: i32,
50 LL | | _c: (),
51 LL | | }
52 | |_____^
53 |
54 help: remove this field
55 --> $DIR/manual_non_exhaustive.rs:71:9
56 |
57 LL | _c: (),
58 | ^^^^^^
59
60 error: this seems like a manual implementation of the non-exhaustive pattern
61 --> $DIR/manual_non_exhaustive.rs:76:5
62 |
63 LL | / struct Sp {
64 LL | | pub a: i32,
65 LL | | pub b: i32,
66 LL | | _c: (),
67 LL | | }
68 | |_____^
69 |
70 help: remove this field
71 --> $DIR/manual_non_exhaustive.rs:79:9
72 |
73 LL | _c: (),
74 | ^^^^^^
75
76 error: this seems like a manual implementation of the non-exhaustive pattern
77 --> $DIR/manual_non_exhaustive.rs:117:5
78 |
79 LL | struct T(pub i32, pub i32, ());
80 | --------^^^^^^^^^^^^^^^^^^^^^^^
81 | |
82 | help: add the attribute: `#[non_exhaustive] struct T`
83 |
84 help: remove this field
85 --> $DIR/manual_non_exhaustive.rs:117:32
86 |
87 LL | struct T(pub i32, pub i32, ());
88 | ^^
89
90 error: this seems like a manual implementation of the non-exhaustive pattern
91 --> $DIR/manual_non_exhaustive.rs:121:5
92 |
93 LL | struct Tp(pub i32, pub i32, ());
94 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95 |
96 help: remove this field
97 --> $DIR/manual_non_exhaustive.rs:121:33
98 |
99 LL | struct Tp(pub i32, pub i32, ());
100 | ^^
101
102 error: aborting due to 6 previous errors
103