File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -978,18 +978,18 @@ are generic.
978978This will cause an error:
979979
980980```compile_fail
981- #![feature(simd )]
981+ #![feature(repr_simd )]
982982
983- #[simd]
983+ #[repr( simd) ]
984984struct Bad<T>(T, T, T);
985985```
986986
987987This will not:
988988
989989```
990- #![feature(simd )]
990+ #![feature(repr_simd )]
991991
992- #[simd]
992+ #[repr( simd) ]
993993struct Good(u32, u32, u32);
994994```
995995"## ,
@@ -1026,18 +1026,18 @@ will trigger this error.
10261026This will cause an error:
10271027
10281028```compile_fail
1029- #![feature(simd )]
1029+ #![feature(repr_simd )]
10301030
1031- #[simd]
1031+ #[repr( simd) ]
10321032struct Bad(u16, u32, u32);
10331033```
10341034
10351035This will not:
10361036
10371037```
1038- #![feature(simd )]
1038+ #![feature(repr_simd )]
10391039
1040- #[simd]
1040+ #[repr( simd) ]
10411041struct Good(u32, u32, u32);
10421042```
10431043"## ,
@@ -1049,18 +1049,18 @@ must be machine types so SIMD operations can be applied to them.
10491049This will cause an error:
10501050
10511051```compile_fail
1052- #![feature(simd )]
1052+ #![feature(repr_simd )]
10531053
1054- #[simd]
1054+ #[repr( simd) ]
10551055struct Bad(String);
10561056```
10571057
10581058This will not:
10591059
10601060```
1061- #![feature(simd )]
1061+ #![feature(repr_simd )]
10621062
1063- #[simd]
1063+ #[repr( simd) ]
10641064struct Good(u32, u32, u32);
10651065```
10661066"## ,
You can’t perform that action at this time.
0 commit comments