summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-repr-simd.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/feature-gates/feature-gate-repr-simd.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-repr-simd.rs b/src/test/ui/feature-gates/feature-gate-repr-simd.rs
new file mode 100644
index 000000000..c527404f5
--- /dev/null
+++ b/src/test/ui/feature-gates/feature-gate-repr-simd.rs
@@ -0,0 +1,9 @@
+#[repr(simd)] //~ error: SIMD types are experimental
+struct Foo(u64, u64);
+
+#[repr(C)] //~ ERROR conflicting representation hints
+//~^ WARN this was previously accepted
+#[repr(simd)] //~ error: SIMD types are experimental
+struct Bar(u64, u64);
+
+fn main() {}