@@ -12,7 +12,7 @@ error: any use of this value will cause an error
12
12
LL | const I32_REF_U8_UNION: u8 = unsafe { Nonsense { int_32_ref: &3 }.uint_8 };
13
13
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
14
14
| |
15
- | unable to turn this pointer into raw bytes
15
+ | unable to turn pointer into raw bytes
16
16
|
17
17
= note: `#[deny(const_err)]` on by default
18
18
@@ -22,15 +22,15 @@ error: any use of this value will cause an error
22
22
LL | const I32_REF_U16_UNION: u16 = unsafe { Nonsense { int_32_ref: &3 }.uint_16 };
23
23
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
24
24
| |
25
- | unable to turn this pointer into raw bytes
25
+ | unable to turn pointer into raw bytes
26
26
27
27
error: any use of this value will cause an error
28
28
--> $DIR/const-pointer-values-in-various-types.rs:34:45
29
29
|
30
30
LL | const I32_REF_U32_UNION: u32 = unsafe { Nonsense { int_32_ref: &3 }.uint_32 };
31
31
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
32
32
| |
33
- | unable to turn this pointer into raw bytes
33
+ | unable to turn pointer into raw bytes
34
34
35
35
error[E0080]: it is undefined behavior to use this value
36
36
--> $DIR/const-pointer-values-in-various-types.rs:37:5
@@ -54,23 +54,23 @@ error: any use of this value will cause an error
54
54
LL | const I32_REF_I8_UNION: i8 = unsafe { Nonsense { int_32_ref: &3 }.int_8 };
55
55
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
56
56
| |
57
- | unable to turn this pointer into raw bytes
57
+ | unable to turn pointer into raw bytes
58
58
59
59
error: any use of this value will cause an error
60
60
--> $DIR/const-pointer-values-in-various-types.rs:46:45
61
61
|
62
62
LL | const I32_REF_I16_UNION: i16 = unsafe { Nonsense { int_32_ref: &3 }.int_16 };
63
63
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
64
64
| |
65
- | unable to turn this pointer into raw bytes
65
+ | unable to turn pointer into raw bytes
66
66
67
67
error: any use of this value will cause an error
68
68
--> $DIR/const-pointer-values-in-various-types.rs:49:45
69
69
|
70
70
LL | const I32_REF_I32_UNION: i32 = unsafe { Nonsense { int_32_ref: &3 }.int_32 };
71
71
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
72
72
| |
73
- | unable to turn this pointer into raw bytes
73
+ | unable to turn pointer into raw bytes
74
74
75
75
error[E0080]: it is undefined behavior to use this value
76
76
--> $DIR/const-pointer-values-in-various-types.rs:52:5
@@ -94,7 +94,7 @@ error: any use of this value will cause an error
94
94
LL | const I32_REF_F32_UNION: f32 = unsafe { Nonsense { int_32_ref: &3 }.float_32 };
95
95
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
96
96
| |
97
- | unable to turn this pointer into raw bytes
97
+ | unable to turn pointer into raw bytes
98
98
99
99
error[E0080]: it is undefined behavior to use this value
100
100
--> $DIR/const-pointer-values-in-various-types.rs:61:5
@@ -110,39 +110,39 @@ error: any use of this value will cause an error
110
110
LL | const I32_REF_BOOL_UNION: bool = unsafe { Nonsense { int_32_ref: &3 }.truthy_falsey };
111
111
| ------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
112
112
| |
113
- | unable to turn this pointer into raw bytes
113
+ | unable to turn pointer into raw bytes
114
114
115
115
error: any use of this value will cause an error
116
116
--> $DIR/const-pointer-values-in-various-types.rs:67:47
117
117
|
118
118
LL | const I32_REF_CHAR_UNION: char = unsafe { Nonsense { int_32_ref: &3 }.character };
119
119
| ------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
120
120
| |
121
- | unable to turn this pointer into raw bytes
121
+ | unable to turn pointer into raw bytes
122
122
123
123
error: any use of this value will cause an error
124
124
--> $DIR/const-pointer-values-in-various-types.rs:70:39
125
125
|
126
126
LL | const STR_U8_UNION: u8 = unsafe { Nonsense { stringy: "3" }.uint_8 };
127
127
| ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
128
128
| |
129
- | unable to turn this pointer into raw bytes
129
+ | unable to turn pointer into raw bytes
130
130
131
131
error: any use of this value will cause an error
132
132
--> $DIR/const-pointer-values-in-various-types.rs:73:41
133
133
|
134
134
LL | const STR_U16_UNION: u16 = unsafe { Nonsense { stringy: "3" }.uint_16 };
135
135
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
136
136
| |
137
- | unable to turn this pointer into raw bytes
137
+ | unable to turn pointer into raw bytes
138
138
139
139
error: any use of this value will cause an error
140
140
--> $DIR/const-pointer-values-in-various-types.rs:76:41
141
141
|
142
142
LL | const STR_U32_UNION: u32 = unsafe { Nonsense { stringy: "3" }.uint_32 };
143
143
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
144
144
| |
145
- | unable to turn this pointer into raw bytes
145
+ | unable to turn pointer into raw bytes
146
146
147
147
error[E0080]: it is undefined behavior to use this value
148
148
--> $DIR/const-pointer-values-in-various-types.rs:79:5
@@ -158,31 +158,31 @@ error: any use of this value will cause an error
158
158
LL | const STR_U128_UNION: u128 = unsafe { Nonsense { stringy: "3" }.uint_128 };
159
159
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
160
160
| |
161
- | unable to turn this pointer into raw bytes
161
+ | unable to turn pointer into raw bytes
162
162
163
163
error: any use of this value will cause an error
164
164
--> $DIR/const-pointer-values-in-various-types.rs:85:39
165
165
|
166
166
LL | const STR_I8_UNION: i8 = unsafe { Nonsense { stringy: "3" }.int_8 };
167
167
| ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
168
168
| |
169
- | unable to turn this pointer into raw bytes
169
+ | unable to turn pointer into raw bytes
170
170
171
171
error: any use of this value will cause an error
172
172
--> $DIR/const-pointer-values-in-various-types.rs:88:41
173
173
|
174
174
LL | const STR_I16_UNION: i16 = unsafe { Nonsense { stringy: "3" }.int_16 };
175
175
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
176
176
| |
177
- | unable to turn this pointer into raw bytes
177
+ | unable to turn pointer into raw bytes
178
178
179
179
error: any use of this value will cause an error
180
180
--> $DIR/const-pointer-values-in-various-types.rs:91:41
181
181
|
182
182
LL | const STR_I32_UNION: i32 = unsafe { Nonsense { stringy: "3" }.int_32 };
183
183
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
184
184
| |
185
- | unable to turn this pointer into raw bytes
185
+ | unable to turn pointer into raw bytes
186
186
187
187
error[E0080]: it is undefined behavior to use this value
188
188
--> $DIR/const-pointer-values-in-various-types.rs:94:5
@@ -198,15 +198,15 @@ error: any use of this value will cause an error
198
198
LL | const STR_I128_UNION: i128 = unsafe { Nonsense { stringy: "3" }.int_128 };
199
199
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
200
200
| |
201
- | unable to turn this pointer into raw bytes
201
+ | unable to turn pointer into raw bytes
202
202
203
203
error: any use of this value will cause an error
204
204
--> $DIR/const-pointer-values-in-various-types.rs:100:41
205
205
|
206
206
LL | const STR_F32_UNION: f32 = unsafe { Nonsense { stringy: "3" }.float_32 };
207
207
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
208
208
| |
209
- | unable to turn this pointer into raw bytes
209
+ | unable to turn pointer into raw bytes
210
210
211
211
error[E0080]: it is undefined behavior to use this value
212
212
--> $DIR/const-pointer-values-in-various-types.rs:103:5
@@ -222,15 +222,15 @@ error: any use of this value will cause an error
222
222
LL | const STR_BOOL_UNION: bool = unsafe { Nonsense { stringy: "3" }.truthy_falsey };
223
223
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
224
224
| |
225
- | unable to turn this pointer into raw bytes
225
+ | unable to turn pointer into raw bytes
226
226
227
227
error: any use of this value will cause an error
228
228
--> $DIR/const-pointer-values-in-various-types.rs:109:43
229
229
|
230
230
LL | const STR_CHAR_UNION: char = unsafe { Nonsense { stringy: "3" }.character };
231
231
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
232
232
| |
233
- | unable to turn this pointer into raw bytes
233
+ | unable to turn pointer into raw bytes
234
234
235
235
error: aborting due to 29 previous errors
236
236
0 commit comments