about summary refs log tree commit diff
path: root/src/test/ui/const-generics/array-wrapper-struct-ctor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/array-wrapper-struct-ctor.rs')
-rw-r--r--src/test/ui/const-generics/array-wrapper-struct-ctor.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/array-wrapper-struct-ctor.rs b/src/test/ui/const-generics/array-wrapper-struct-ctor.rs
index d83846fcf88..2d1a405ebdd 100644
--- a/src/test/ui/const-generics/array-wrapper-struct-ctor.rs
+++ b/src/test/ui/const-generics/array-wrapper-struct-ctor.rs
@@ -3,6 +3,8 @@
 #![feature(const_generics)]
 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
 
+#![allow(dead_code)]
+
 struct ArrayStruct<T, const N: usize> {
     data: [T; N],
 }