Closed
Description
trait Foo {
fn bar(&self, a: i32) {}
}
fn main() {}
<anon>:2:19: 2:20 warning: unused variable: `a`, #[warn(unused_variables)] on by default
<anon>:2 fn bar(&self, a: i32) {}
^
The arguments to default methods in traits form part of the documentation, but it is not uncommon for a default implementation of a method to be a no-op that uses none of its arguments.