]>
Commit | Line | Data |
---|---|---|
2b03887a | 1 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
2 | --> $DIR/repr-transparent-non-exhaustive.rs:37:22 |
3 | | | |
4 | LL | 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 |
10 | note: the lint level is defined here |
11 | --> $DIR/repr-transparent-non-exhaustive.rs:1:9 | |
12 | | | |
13 | LL | #![deny(repr_transparent_external_private_fields)] | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
064997fb | 15 | |
2b03887a | 16 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
17 | --> $DIR/repr-transparent-non-exhaustive.rs:42:22 |
18 | | | |
19 | LL | 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 | 26 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
27 | --> $DIR/repr-transparent-non-exhaustive.rs:47:22 |
28 | | | |
29 | LL | 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 | 36 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
37 | --> $DIR/repr-transparent-non-exhaustive.rs:52:22 |
38 | | | |
39 | LL | 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 | 46 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
47 | --> $DIR/repr-transparent-non-exhaustive.rs:57:22 |
48 | | | |
49 | LL | 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 | 56 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
57 | --> $DIR/repr-transparent-non-exhaustive.rs:62:23 |
58 | | | |
59 | LL | 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 | 66 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
67 | --> $DIR/repr-transparent-non-exhaustive.rs:67:23 |
68 | | | |
69 | LL | 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 | 76 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
77 | --> $DIR/repr-transparent-non-exhaustive.rs:72:23 |
78 | | | |
79 | LL | 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 | 86 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
87 | --> $DIR/repr-transparent-non-exhaustive.rs:77:23 |
88 | | | |
89 | LL | 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 | 96 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
97 | --> $DIR/repr-transparent-non-exhaustive.rs:82:23 |
98 | | | |
99 | LL | 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 | 106 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
107 | --> $DIR/repr-transparent-non-exhaustive.rs:87:23 |
108 | | | |
109 | LL | 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 | 116 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
064997fb FG |
117 | --> $DIR/repr-transparent-non-exhaustive.rs:92:23 |
118 | | | |
119 | LL | 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 | ||
781aab86 FG |
126 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types |
127 | --> $DIR/repr-transparent-non-exhaustive.rs:97:16 | |
128 | | | |
129 | LL | pub struct T17(NonExhaustive, Sized); | |
130 | | ^^^^^^^^^^^^^ | |
131 | | | |
132 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
133 | = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> | |
134 | = 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. | |
135 | ||
136 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types | |
137 | --> $DIR/repr-transparent-non-exhaustive.rs:102:31 | |
138 | | | |
139 | LL | pub struct T18(NonExhaustive, NonExhaustive); | |
140 | | ^^^^^^^^^^^^^ | |
141 | | | |
142 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
143 | = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> | |
144 | = 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. | |
145 | ||
146 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types | |
147 | --> $DIR/repr-transparent-non-exhaustive.rs:107:31 | |
148 | | | |
149 | LL | pub struct T19(NonExhaustive, Private); | |
150 | | ^^^^^^^ | |
151 | | | |
152 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
153 | = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> | |
154 | = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future. | |
155 | ||
156 | error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types | |
157 | --> $DIR/repr-transparent-non-exhaustive.rs:112:32 | |
158 | | | |
159 | LL | pub struct T19Flipped(Private, NonExhaustive); | |
160 | | ^^^^^^^^^^^^^ | |
161 | | | |
162 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
163 | = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> | |
164 | = 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. | |
165 | ||
166 | error: aborting due to 16 previous errors | |
064997fb | 167 |