about summary refs log tree commit diff
path: root/tests/ui/simd/repr-simd-on-enum.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/simd/repr-simd-on-enum.stderr')
-rw-r--r--tests/ui/simd/repr-simd-on-enum.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/simd/repr-simd-on-enum.stderr b/tests/ui/simd/repr-simd-on-enum.stderr
new file mode 100644
index 00000000000..6a19a16e8ea
--- /dev/null
+++ b/tests/ui/simd/repr-simd-on-enum.stderr
@@ -0,0 +1,14 @@
+error[E0517]: attribute should be applied to a struct
+  --> $DIR/repr-simd-on-enum.rs:5:8
+   |
+LL |   #[repr(simd)]
+   |          ^^^^
+LL | / enum Aligned {
+LL | |     Zero = 0,
+LL | |     One = 1,
+LL | | }
+   | |_- not a struct
+
+error: aborting due to 1 previous error
+
+For more information about this error, try `rustc --explain E0517`.