about summary refs log tree commit diff
path: root/tests/ui/simd/monomorphize-zero-length.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/simd/monomorphize-zero-length.rs')
-rw-r--r--tests/ui/simd/monomorphize-zero-length.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/simd/monomorphize-zero-length.rs b/tests/ui/simd/monomorphize-zero-length.rs
index d38870c572d..f956197a61c 100644
--- a/tests/ui/simd/monomorphize-zero-length.rs
+++ b/tests/ui/simd/monomorphize-zero-length.rs
@@ -6,7 +6,5 @@
 struct Simd<T, const N: usize>([T; N]);
 
 fn main() {
-    let _empty = Simd([1.0; 0]);
+    let _empty = Simd([1.0; 0]); //~ ERROR the SIMD type `Simd<f64, 0>` has zero elements
 }
-
-//~? ERROR monomorphising SIMD type `Simd<f64, 0>` of zero length