summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-repr-simd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-repr-simd.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-repr-simd.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-repr-simd.rs b/tests/ui/feature-gates/feature-gate-repr-simd.rs
new file mode 100644
index 000000000..c527404f5
--- /dev/null
+++ b/tests/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() {}