about summary refs log tree commit diff
path: root/src/test/ui/const-generics/array-wrapper-struct-ctor.rs
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-09-01 17:30:19 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2019-09-08 11:32:28 -0400
commit6fdbece55f7ccba7ac16808bd62ead27d6da9500 (patch)
treefdbfe6ce498d923eb7a8cb12ea3150c14c43e33f /src/test/ui/const-generics/array-wrapper-struct-ctor.rs
parent072942d569b898ef65569a21bd1b73d15cc1caf6 (diff)
downloadrust-6fdbece55f7ccba7ac16808bd62ead27d6da9500.tar.gz
rust-6fdbece55f7ccba7ac16808bd62ead27d6da9500.zip
Update test stderr with results of enabling unused lints
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],
 }