File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -263,19 +263,19 @@ assert_eq!(1, Fieldless::Struct{} as isize);
263
263
assert_eq! (2 , Fieldless :: Unit as isize );
264
264
265
265
#[repr(u8 )]
266
- enum FieldlessWithDiscrimants {
266
+ enum FieldlessWithDiscriminants {
267
267
First = 10 ,
268
268
Tuple (),
269
269
Second = 20 ,
270
270
Struct {},
271
271
Unit ,
272
272
}
273
273
274
- assert_eq! (10 , FieldlessWithDiscrimants :: First as u8 );
275
- assert_eq! (11 , FieldlessWithDiscrimants :: Tuple () as u8 );
276
- assert_eq! (20 , FieldlessWithDiscrimants :: Second as u8 );
277
- assert_eq! (21 , FieldlessWithDiscrimants :: Struct {} as u8 );
278
- assert_eq! (22 , FieldlessWithDiscrimants :: Unit as u8 );
274
+ assert_eq! (10 , FieldlessWithDiscriminants :: First as u8 );
275
+ assert_eq! (11 , FieldlessWithDiscriminants :: Tuple () as u8 );
276
+ assert_eq! (20 , FieldlessWithDiscriminants :: Second as u8 );
277
+ assert_eq! (21 , FieldlessWithDiscriminants :: Struct {} as u8 );
278
+ assert_eq! (22 , FieldlessWithDiscriminants :: Unit as u8 );
279
279
```
280
280
281
281
#### Pointer casting
You can’t perform that action at this time.
0 commit comments