about summary refs log tree commit diff
path: root/tests/ui/structs-enums/enum-null-pointer-opt.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-07 03:33:39 +0000
committerbors <bors@rust-lang.org>2024-02-07 03:33:39 +0000
commitd4f6f9ee6a3b24f2cb97b1a5b82963609b93aa33 (patch)
tree87e875c88b08158761df546ea4e88902fbb08d6a /tests/ui/structs-enums/enum-null-pointer-opt.rs
parent586893c7b0adabf5f0a4c155fd86e13cf470e74b (diff)
parentc7519d42c2664828c98fdb98acab73e9a39b0b97 (diff)
downloadrust-d4f6f9ee6a3b24f2cb97b1a5b82963609b93aa33.tar.gz
rust-d4f6f9ee6a3b24f2cb97b1a5b82963609b93aa33.zip
Auto merge of #118257 - mu001999:dead_code/trait, r=cjgillot
Make traits / trait methods detected by the dead code lint

Fixes #118139 and #41883
Diffstat (limited to 'tests/ui/structs-enums/enum-null-pointer-opt.rs')
-rw-r--r--tests/ui/structs-enums/enum-null-pointer-opt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/structs-enums/enum-null-pointer-opt.rs b/tests/ui/structs-enums/enum-null-pointer-opt.rs
index 356f8a6dd36..21564eeec29 100644
--- a/tests/ui/structs-enums/enum-null-pointer-opt.rs
+++ b/tests/ui/structs-enums/enum-null-pointer-opt.rs
@@ -7,7 +7,7 @@ use std::ptr::NonNull;
 use std::rc::Rc;
 use std::sync::Arc;
 
-trait Trait { fn dummy(&self) { } }
+trait Trait { fn dummy(&self) { } } //~ WARN method `dummy` is never used
 trait Mirror { type Image; }
 impl<T> Mirror for T { type Image = T; }
 struct ParamTypeStruct<T>(#[allow(dead_code)] T);