Ignore trait implementations

This commit is contained in:
Hirochika Matsumoto 2020-11-14 19:25:54 +09:00
parent 4c8d248190
commit 4e5c02e898
3 changed files with 23 additions and 12 deletions

View file

@ -95,6 +95,20 @@ impl A {
}
}
trait B {
// trait impls are not linted
fn func13() -> Option<i32> {
Some(1)
}
}
impl A for B {
// trait impls are not linted
fn func13() -> Option<i32> {
Some(0)
}
}
fn main() {
// method calls are not linted
func1(true, true);