]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/fn_params_excessive_bools.rs
[`excessive_bools`] lint trait functions even without bodies
[rust.git] / tests / ui / fn_params_excessive_bools.rs
index 7995912110d6e1a6d528f781ec92fa0ba9698f93..f53e531629aaef67e74b66ae674e4015f78b7061 100644 (file)
@@ -23,10 +23,12 @@ fn t(_: S, _: S, _: Box<S>, _: Vec<u32>, _: bool, _: bool, _: bool, _: bool) {}
 
 struct S;
 trait Trait {
+    // should warn for trait functions with and without body
     fn f(_: bool, _: bool, _: bool, _: bool);
     fn g(_: bool, _: bool, _: bool, _: Vec<u32>);
     #[allow(clippy::fn_params_excessive_bools)]
     fn h(_: bool, _: bool, _: bool, _: bool, _: bool, _: bool);
+    fn i(_: bool, _: bool, _: bool, _: bool) {}
 }
 
 impl S {