1 #![warn(clippy::disallowed_method)]
2 #![allow(clippy::no_effect, clippy::many_single_char_names)]
10 impl Baz for ImplStruct {
11 fn bad_method(self) {}
17 fn bad_method(self) {}
26 impl Quux for StaticStruct {
33 fn bad_method(self) {}
45 let a = AttrStruct{ bad_method: 5 };
52 // good because not a method call (ExprKind => Call)
53 StaticStruct::bad_method();