]> git.proxmox.com Git - rustc.git/blame - src/test/ui/repr/repr-transparent-non-exhaustive.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / repr / repr-transparent-non-exhaustive.stderr
CommitLineData
2b03887a 1error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
2 --> $DIR/repr-transparent-non-exhaustive.rs:37:22
3 |
4LL | pub struct T5(Sized, Private);
5 | ^^^^^^^
6 |
2b03887a
FG
7 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
9 = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.
064997fb
FG
10note: the lint level is defined here
11 --> $DIR/repr-transparent-non-exhaustive.rs:1:9
12 |
13LL | #![deny(repr_transparent_external_private_fields)]
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
064997fb 15
2b03887a 16error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
17 --> $DIR/repr-transparent-non-exhaustive.rs:42:22
18 |
19LL | pub struct T6(Sized, NonExhaustive);
20 | ^^^^^^^^^^^^^
21 |
22 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
23 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
24 = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
25
2b03887a 26error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
27 --> $DIR/repr-transparent-non-exhaustive.rs:47:22
28 |
29LL | pub struct T7(Sized, NonExhaustiveEnum);
30 | ^^^^^^^^^^^^^^^^^
31 |
32 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
33 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
34 = note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
35
2b03887a 36error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
37 --> $DIR/repr-transparent-non-exhaustive.rs:52:22
38 |
39LL | pub struct T8(Sized, NonExhaustiveVariant);
40 | ^^^^^^^^^^^^^^^^^^^^
41 |
42 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
43 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
44 = note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
45
2b03887a 46error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
47 --> $DIR/repr-transparent-non-exhaustive.rs:57:22
48 |
49LL | pub struct T9(Sized, InternalIndirection<Private>);
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 |
52 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
53 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
54 = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.
55
2b03887a 56error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
57 --> $DIR/repr-transparent-non-exhaustive.rs:62:23
58 |
59LL | pub struct T10(Sized, InternalIndirection<NonExhaustive>);
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 |
62 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
63 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
64 = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
65
2b03887a 66error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
67 --> $DIR/repr-transparent-non-exhaustive.rs:67:23
68 |
69LL | pub struct T11(Sized, InternalIndirection<NonExhaustiveEnum>);
70 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71 |
72 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
73 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
74 = note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
75
2b03887a 76error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
77 --> $DIR/repr-transparent-non-exhaustive.rs:72:23
78 |
79LL | pub struct T12(Sized, InternalIndirection<NonExhaustiveVariant>);
80 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
81 |
82 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
83 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
84 = note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
85
2b03887a 86error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
87 --> $DIR/repr-transparent-non-exhaustive.rs:77:23
88 |
89LL | pub struct T13(Sized, ExternalIndirection<Private>);
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91 |
92 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
93 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
94 = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.
95
2b03887a 96error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
97 --> $DIR/repr-transparent-non-exhaustive.rs:82:23
98 |
99LL | pub struct T14(Sized, ExternalIndirection<NonExhaustive>);
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101 |
102 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
103 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
104 = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
105
2b03887a 106error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
107 --> $DIR/repr-transparent-non-exhaustive.rs:87:23
108 |
109LL | pub struct T15(Sized, ExternalIndirection<NonExhaustiveEnum>);
110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111 |
112 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
113 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
114 = note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
115
2b03887a 116error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
064997fb
FG
117 --> $DIR/repr-transparent-non-exhaustive.rs:92:23
118 |
119LL | pub struct T16(Sized, ExternalIndirection<NonExhaustiveVariant>);
120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121 |
122 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
123 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
124 = note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
125
126error: aborting due to 12 previous errors
127