about summary refs log tree commit diff
path: root/tests/ui/cfg/cfg_attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/cfg/cfg_attr.rs')
-rw-r--r--tests/ui/cfg/cfg_attr.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/cfg/cfg_attr.rs b/tests/ui/cfg/cfg_attr.rs
index 4bd024ef5f4..ba4adafd3a5 100644
--- a/tests/ui/cfg/cfg_attr.rs
+++ b/tests/ui/cfg/cfg_attr.rs
@@ -1,6 +1,8 @@
 //@ run-pass
 //@ compile-flags:--cfg set1 --cfg set2
-#![allow(dead_code)]
+
+#![allow(dead_code, unexpected_cfgs)]
+
 use std::fmt::Debug;
 
 struct NotDebugable;