@@ -35,7 +35,7 @@ LL | let _val: Wrap<&'static T> = mem::zeroed();
35
35
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
36
36
|
37
37
= note: `Wrap<&T>` must be non-null
38
- note: references must be non-null (in this struct field)
38
+ note: because references must be non-null (in this struct field)
39
39
--> $DIR/invalid_value.rs:17:18
40
40
|
41
41
LL | struct Wrap<T> { wrapped: T }
@@ -51,7 +51,7 @@ LL | let _val: Wrap<&'static T> = mem::uninitialized();
51
51
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
52
52
|
53
53
= note: `Wrap<&T>` must be non-null
54
- note: references must be non-null (in this struct field)
54
+ note: because references must be non-null (in this struct field)
55
55
--> $DIR/invalid_value.rs:17:18
56
56
|
57
57
LL | struct Wrap<T> { wrapped: T }
@@ -163,7 +163,7 @@ LL | let _val: Ref = mem::zeroed();
163
163
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
164
164
|
165
165
= note: `Ref` must be non-null
166
- note: references must be non-null (in this struct field)
166
+ note: because references must be non-null (in this struct field)
167
167
--> $DIR/invalid_value.rs:14:12
168
168
|
169
169
LL | struct Ref(&'static i32);
@@ -179,7 +179,7 @@ LL | let _val: Ref = mem::uninitialized();
179
179
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
180
180
|
181
181
= note: `Ref` must be non-null
182
- note: references must be non-null (in this struct field)
182
+ note: because references must be non-null (in this struct field)
183
183
--> $DIR/invalid_value.rs:14:12
184
184
|
185
185
LL | struct Ref(&'static i32);
@@ -217,7 +217,7 @@ LL | let _val: Wrap<fn()> = mem::zeroed();
217
217
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
218
218
|
219
219
= note: `Wrap<fn()>` must be non-null
220
- note: function pointers must be non-null (in this struct field)
220
+ note: because function pointers must be non-null (in this struct field)
221
221
--> $DIR/invalid_value.rs:17:18
222
222
|
223
223
LL | struct Wrap<T> { wrapped: T }
@@ -233,7 +233,7 @@ LL | let _val: Wrap<fn()> = mem::uninitialized();
233
233
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
234
234
|
235
235
= note: `Wrap<fn()>` must be non-null
236
- note: function pointers must be non-null (in this struct field)
236
+ note: because function pointers must be non-null (in this struct field)
237
237
--> $DIR/invalid_value.rs:17:18
238
238
|
239
239
LL | struct Wrap<T> { wrapped: T }
@@ -249,7 +249,7 @@ LL | let _val: WrapEnum<fn()> = mem::zeroed();
249
249
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
250
250
|
251
251
= note: `WrapEnum<fn()>` must be non-null
252
- note: function pointers must be non-null (in this field of the only potentially inhabited enum variant)
252
+ note: because function pointers must be non-null (in this field of the only potentially inhabited enum variant)
253
253
--> $DIR/invalid_value.rs:18:28
254
254
|
255
255
LL | enum WrapEnum<T> { Wrapped(T) }
@@ -265,7 +265,7 @@ LL | let _val: WrapEnum<fn()> = mem::uninitialized();
265
265
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
266
266
|
267
267
= note: `WrapEnum<fn()>` must be non-null
268
- note: function pointers must be non-null (in this field of the only potentially inhabited enum variant)
268
+ note: because function pointers must be non-null (in this field of the only potentially inhabited enum variant)
269
269
--> $DIR/invalid_value.rs:18:28
270
270
|
271
271
LL | enum WrapEnum<T> { Wrapped(T) }
@@ -285,7 +285,7 @@ note: `RefPair` must be non-null (in this struct field)
285
285
|
286
286
LL | struct Wrap<T> { wrapped: T }
287
287
| ^^^^^^^^^^
288
- note: references must be non-null (in this struct field)
288
+ note: because references must be non-null (in this struct field)
289
289
--> $DIR/invalid_value.rs:15:16
290
290
|
291
291
LL | struct RefPair((&'static i32, i32));
@@ -305,7 +305,7 @@ note: `RefPair` must be non-null (in this struct field)
305
305
|
306
306
LL | struct Wrap<T> { wrapped: T }
307
307
| ^^^^^^^^^^
308
- note: references must be non-null (in this struct field)
308
+ note: because references must be non-null (in this struct field)
309
309
--> $DIR/invalid_value.rs:15:16
310
310
|
311
311
LL | struct RefPair((&'static i32, i32));
@@ -441,7 +441,7 @@ LL | let _val: OneFruitNonZero = mem::zeroed();
441
441
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
442
442
|
443
443
= note: `OneFruitNonZero` must be non-null
444
- note: `std::num::NonZeroU32` must be non-null (in this field of the only potentially inhabited enum variant)
444
+ note: because `std::num::NonZeroU32` must be non-null (in this field of the only potentially inhabited enum variant)
445
445
--> $DIR/invalid_value.rs:39:12
446
446
|
447
447
LL | Banana(NonZeroU32),
@@ -457,7 +457,7 @@ LL | let _val: OneFruitNonZero = mem::uninitialized();
457
457
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
458
458
|
459
459
= note: `OneFruitNonZero` must be non-null
460
- note: `std::num::NonZeroU32` must be non-null (in this field of the only potentially inhabited enum variant)
460
+ note: because `std::num::NonZeroU32` must be non-null (in this field of the only potentially inhabited enum variant)
461
461
--> $DIR/invalid_value.rs:39:12
462
462
|
463
463
LL | Banana(NonZeroU32),
0 commit comments