about summary refs log tree commit diff
path: root/tests/ui/anon-params/anon-params-deprecated.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/anon-params/anon-params-deprecated.rs')
-rw-r--r--tests/ui/anon-params/anon-params-deprecated.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/anon-params/anon-params-deprecated.rs b/tests/ui/anon-params/anon-params-deprecated.rs
index 6f7385da040..108ba60a02f 100644
--- a/tests/ui/anon-params/anon-params-deprecated.rs
+++ b/tests/ui/anon-params/anon-params-deprecated.rs
@@ -5,6 +5,7 @@
 // edition:2015
 // run-rustfix
 
+#[allow(dead_code)]
 trait T {
     fn foo(i32); //~ WARNING anonymous parameters are deprecated
                  //~| WARNING this is accepted in the current edition