]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: this seems like a manual implementation of the non-exhaustive pattern |
04454e1e | 2 | --> $DIR/manual_non_exhaustive_struct.rs:5:5 |
f20569fa XL |
3 | | |
4 | LL | struct S { | |
5 | | ^------- | |
6 | | | | |
7 | | _____help: add the attribute: `#[non_exhaustive] struct S` | |
8 | | | | |
9 | LL | | pub a: i32, | |
10 | LL | | pub b: i32, | |
11 | LL | | _c: (), | |
12 | LL | | } | |
13 | | |_____^ | |
14 | | | |
15 | help: remove this field | |
04454e1e | 16 | --> $DIR/manual_non_exhaustive_struct.rs:8:9 |
f20569fa XL |
17 | | |
18 | LL | _c: (), | |
19 | | ^^^^^^ | |
2b03887a | 20 | = note: `-D clippy::manual-non-exhaustive` implied by `-D warnings` |
f20569fa XL |
21 | |
22 | error: this seems like a manual implementation of the non-exhaustive pattern | |
04454e1e | 23 | --> $DIR/manual_non_exhaustive_struct.rs:13:5 |
f20569fa XL |
24 | | |
25 | LL | / struct Sp { | |
26 | LL | | pub a: i32, | |
27 | LL | | pub b: i32, | |
28 | LL | | _c: (), | |
29 | LL | | } | |
30 | | |_____^ | |
31 | | | |
32 | help: remove this field | |
04454e1e | 33 | --> $DIR/manual_non_exhaustive_struct.rs:16:9 |
f20569fa XL |
34 | | |
35 | LL | _c: (), | |
36 | | ^^^^^^ | |
37 | ||
38 | error: this seems like a manual implementation of the non-exhaustive pattern | |
04454e1e | 39 | --> $DIR/manual_non_exhaustive_struct.rs:54:5 |
f20569fa XL |
40 | | |
41 | LL | struct T(pub i32, pub i32, ()); | |
42 | | --------^^^^^^^^^^^^^^^^^^^^^^^ | |
43 | | | | |
44 | | help: add the attribute: `#[non_exhaustive] struct T` | |
45 | | | |
46 | help: remove this field | |
04454e1e | 47 | --> $DIR/manual_non_exhaustive_struct.rs:54:32 |
f20569fa XL |
48 | | |
49 | LL | struct T(pub i32, pub i32, ()); | |
50 | | ^^ | |
51 | ||
52 | error: this seems like a manual implementation of the non-exhaustive pattern | |
04454e1e | 53 | --> $DIR/manual_non_exhaustive_struct.rs:58:5 |
f20569fa XL |
54 | | |
55 | LL | struct Tp(pub i32, pub i32, ()); | |
56 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
57 | | | |
58 | help: remove this field | |
04454e1e | 59 | --> $DIR/manual_non_exhaustive_struct.rs:58:33 |
f20569fa XL |
60 | | |
61 | LL | struct Tp(pub i32, pub i32, ()); | |
62 | | ^^ | |
63 | ||
04454e1e | 64 | error: aborting due to 4 previous errors |
f20569fa | 65 |