You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.
7
+
= note: this field contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.
8
8
9
9
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
10
10
--> $DIR/repr-transparent-non-exhaustive.rs:41:22
11
11
|
12
12
LL | pub struct T6(Sized, NonExhaustive);
13
13
| ^^^^^^^^^^^^^
14
14
|
15
-
= 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.
15
+
= note: this field contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
16
16
17
17
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
18
18
--> $DIR/repr-transparent-non-exhaustive.rs:45:22
19
19
|
20
20
LL | pub struct T7(Sized, NonExhaustiveEnum);
21
21
| ^^^^^^^^^^^^^^^^^
22
22
|
23
-
= 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.
23
+
= note: this field contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
24
24
25
25
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
26
26
--> $DIR/repr-transparent-non-exhaustive.rs:49:22
27
27
|
28
28
LL | pub struct T8(Sized, NonExhaustiveVariant);
29
29
| ^^^^^^^^^^^^^^^^^^^^
30
30
|
31
-
= 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.
31
+
= note: this field contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
32
32
33
33
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
= 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.
47
+
= note: this field contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
48
48
49
49
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
= 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.
55
+
= note: this field contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
56
56
57
57
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
= 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.
63
+
= note: this field contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
64
64
65
65
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
= 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.
79
+
= note: this field contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
80
80
81
81
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
= 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.
87
+
= note: this field contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
88
88
89
89
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
= 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.
95
+
= note: this field contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
96
96
97
97
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
98
98
--> $DIR/repr-transparent-non-exhaustive.rs:85:16
99
99
|
100
100
LL | pub struct T17(NonExhaustive, Sized);
101
101
| ^^^^^^^^^^^^^
102
102
|
103
-
= 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.
103
+
= note: this field contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
104
104
105
105
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
= 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.
111
+
= note: this field contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
112
112
113
113
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
114
114
--> $DIR/repr-transparent-non-exhaustive.rs:93:31
115
115
|
116
116
LL | pub struct T19(NonExhaustive, Private);
117
117
| ^^^^^^^
118
118
|
119
-
= note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.
119
+
= note: this field contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.
120
120
121
121
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
= 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.
127
+
= note: this field contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.
= note: this struct contains `ReprC1Zst`, which is marked with `#[repr(C)]`, and makes it not a breaking change to become non-zero-sized in the future.
7
+
= note: this field contains `ReprC1Zst`, which is marked with `#[repr(C)]`, and makes it not a breaking change to become non-zero-sized in the future.
8
8
9
9
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
10
10
--> $DIR/repr-transparent-repr-c.rs:22:15
11
11
|
12
12
LL | pub struct T6(ReprC1Zst, Sized);
13
13
| ^^^^^^^^^
14
14
|
15
-
= note: this struct contains `ReprC1Zst`, which is marked with `#[repr(C)]`, and makes it not a breaking change to become non-zero-sized in the future.
15
+
= note: this field contains `ReprC1Zst`, which is marked with `#[repr(C)]`, and makes it not a breaking change to become non-zero-sized in the future.
16
16
17
17
error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types
18
18
--> $DIR/repr-transparent-repr-c.rs:26:15
19
19
|
20
20
LL | pub struct T7(T1, Sized); // still wrong, even when the repr(C) is hidden inside another type
21
21
| ^^
22
22
|
23
-
= note: this struct contains `ReprC1Zst`, which is marked with `#[repr(C)]`, and makes it not a breaking change to become non-zero-sized in the future.
23
+
= note: this field contains `ReprC1Zst`, which is marked with `#[repr(C)]`, and makes it not a breaking change to become non-zero-sized in the future.
0 commit comments