summaryrefslogtreecommitdiffstats
path: root/src/test/ui/repr/issue-83505-repr-simd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/repr/issue-83505-repr-simd.rs')
-rw-r--r--src/test/ui/repr/issue-83505-repr-simd.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/repr/issue-83505-repr-simd.rs b/src/test/ui/repr/issue-83505-repr-simd.rs
new file mode 100644
index 000000000..280b771d0
--- /dev/null
+++ b/src/test/ui/repr/issue-83505-repr-simd.rs
@@ -0,0 +1,10 @@
+// Regression test for the ICE described in #83505.
+
+#![crate_type="lib"]
+
+#[repr(simd)]
+//~^ ERROR: attribute should be applied to a struct [E0517]
+//~| ERROR: unsupported representation for zero-variant enum [E0084]
+enum Es {}
+static CLs: Es;
+//~^ ERROR: free static item without body