1
Fork 0

Only trigger refine lint on reachable traits

This commit is contained in:
Michael Goulet 2023-09-29 18:36:20 +00:00
parent 7b4b1b08b6
commit 06d9602d33
3 changed files with 23 additions and 8 deletions

View file

@ -45,4 +45,15 @@ impl Late for D {
//~^ ERROR impl method signature does not match trait method signature
}
mod unreachable {
pub trait UnreachablePub {
fn bar() -> impl Sized;
}
struct E;
impl UnreachablePub for E {
fn bar() {}
}
}
fn main() {}