about summary refs log tree commit diff
path: root/tests/ui/structs-enums/resource-in-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/structs-enums/resource-in-struct.rs')
-rw-r--r--tests/ui/structs-enums/resource-in-struct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/structs-enums/resource-in-struct.rs b/tests/ui/structs-enums/resource-in-struct.rs
index 9613ca62a49..267ad6b4a86 100644
--- a/tests/ui/structs-enums/resource-in-struct.rs
+++ b/tests/ui/structs-enums/resource-in-struct.rs
@@ -25,7 +25,7 @@ fn close_res(i: closable) -> close_res {
     }
 }
 
-enum option<T> { none, some(#[allow(unused_tuple_struct_fields)] T), }
+enum option<T> { none, some(#[allow(dead_code)] T), }
 
 fn sink(_res: option<close_res>) { }