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