File tree 1 file changed +12
-12
lines changed 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -978,18 +978,18 @@ are generic.
978
978
This will cause an error:
979
979
980
980
```compile_fail
981
- #![feature(simd )]
981
+ #![feature(repr_simd )]
982
982
983
- #[simd]
983
+ #[repr( simd) ]
984
984
struct Bad<T>(T, T, T);
985
985
```
986
986
987
987
This will not:
988
988
989
989
```
990
- #![feature(simd )]
990
+ #![feature(repr_simd )]
991
991
992
- #[simd]
992
+ #[repr( simd) ]
993
993
struct Good(u32, u32, u32);
994
994
```
995
995
"## ,
@@ -1026,18 +1026,18 @@ will trigger this error.
1026
1026
This will cause an error:
1027
1027
1028
1028
```compile_fail
1029
- #![feature(simd )]
1029
+ #![feature(repr_simd )]
1030
1030
1031
- #[simd]
1031
+ #[repr( simd) ]
1032
1032
struct Bad(u16, u32, u32);
1033
1033
```
1034
1034
1035
1035
This will not:
1036
1036
1037
1037
```
1038
- #![feature(simd )]
1038
+ #![feature(repr_simd )]
1039
1039
1040
- #[simd]
1040
+ #[repr( simd) ]
1041
1041
struct Good(u32, u32, u32);
1042
1042
```
1043
1043
"## ,
@@ -1049,18 +1049,18 @@ must be machine types so SIMD operations can be applied to them.
1049
1049
This will cause an error:
1050
1050
1051
1051
```compile_fail
1052
- #![feature(simd )]
1052
+ #![feature(repr_simd )]
1053
1053
1054
- #[simd]
1054
+ #[repr( simd) ]
1055
1055
struct Bad(String);
1056
1056
```
1057
1057
1058
1058
This will not:
1059
1059
1060
1060
```
1061
- #![feature(simd )]
1061
+ #![feature(repr_simd )]
1062
1062
1063
- #[simd]
1063
+ #[repr( simd) ]
1064
1064
struct Good(u32, u32, u32);
1065
1065
```
1066
1066
"## ,
You can’t perform that action at this time.
0 commit comments