@@ -53,7 +53,7 @@ LL | const BAD_OPTION_CHAR: Option<(char, char)> = Some(('x', unsafe { mem::tran
53
53
78 00 00 00 ff ff ff ff │ x.......
54
54
}
55
55
56
- error[E0080]: constructing invalid value at .pointer : encountered 0, but expected something greater or equal to 1
56
+ error[E0080]: constructing invalid value: encountered 0, but expected something greater or equal to 1
57
57
--> $DIR/raw-bytes.rs:58:1
58
58
|
59
59
LL | const NULL_PTR: NonNull<u8> = unsafe { mem::transmute(0usize) };
@@ -64,7 +64,7 @@ LL | const NULL_PTR: NonNull<u8> = unsafe { mem::transmute(0usize) };
64
64
00 00 00 00 00 00 00 00 │ ........
65
65
}
66
66
67
- error[E0080]: constructing invalid value at .0.0 : encountered 0, but expected something greater or equal to 1
67
+ error[E0080]: constructing invalid value at .0: encountered 0, but expected something greater or equal to 1
68
68
--> $DIR/raw-bytes.rs:61:1
69
69
|
70
70
LL | const NULL_U8: NonZero<u8> = unsafe { mem::transmute(0u8) };
@@ -75,7 +75,7 @@ LL | const NULL_U8: NonZero<u8> = unsafe { mem::transmute(0u8) };
75
75
00 │ .
76
76
}
77
77
78
- error[E0080]: constructing invalid value at .0.0 : encountered 0, but expected something greater or equal to 1
78
+ error[E0080]: constructing invalid value at .0: encountered 0, but expected something greater or equal to 1
79
79
--> $DIR/raw-bytes.rs:63:1
80
80
|
81
81
LL | const NULL_USIZE: NonZero<usize> = unsafe { mem::transmute(0usize) };
@@ -108,7 +108,7 @@ LL | const BAD_RANGE2: RestrictedRange2 = unsafe { RestrictedRange2(20) };
108
108
14 00 00 00 │ ....
109
109
}
110
110
111
- error[E0080]: constructing invalid value at .pointer : encountered 0, but expected something greater or equal to 1
111
+ error[E0080]: constructing invalid value: encountered 0, but expected something greater or equal to 1
112
112
--> $DIR/raw-bytes.rs:78:1
113
113
|
114
114
LL | const NULL_FAT_PTR: NonNull<dyn Send> = unsafe {
0 commit comments