]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/manual_non_exhaustive_struct.stderr
Rollup merge of #96051 - newpavlov:duration_rounding, r=nagisa,joshtriplett
[rust.git] / src / tools / clippy / tests / ui / manual_non_exhaustive_struct.stderr
1 error: this seems like a manual implementation of the non-exhaustive pattern
2   --> $DIR/manual_non_exhaustive_struct.rs:5:5
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    = note: `-D clippy::manual-non-exhaustive` implied by `-D warnings`
16 help: remove this field
17   --> $DIR/manual_non_exhaustive_struct.rs:8:9
18    |
19 LL |         _c: (),
20    |         ^^^^^^
21
22 error: this seems like a manual implementation of the non-exhaustive pattern
23   --> $DIR/manual_non_exhaustive_struct.rs:13:5
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
33   --> $DIR/manual_non_exhaustive_struct.rs:16:9
34    |
35 LL |         _c: (),
36    |         ^^^^^^
37
38 error: this seems like a manual implementation of the non-exhaustive pattern
39   --> $DIR/manual_non_exhaustive_struct.rs:54:5
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
47   --> $DIR/manual_non_exhaustive_struct.rs:54:32
48    |
49 LL |     struct T(pub i32, pub i32, ());
50    |                                ^^
51
52 error: this seems like a manual implementation of the non-exhaustive pattern
53   --> $DIR/manual_non_exhaustive_struct.rs:58:5
54    |
55 LL |     struct Tp(pub i32, pub i32, ());
56    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57    |
58 help: remove this field
59   --> $DIR/manual_non_exhaustive_struct.rs:58:33
60    |
61 LL |     struct Tp(pub i32, pub i32, ());
62    |                                 ^^
63
64 error: aborting due to 4 previous errors
65