Only trigger refine lint on reachable traits
This commit is contained in:
parent
7b4b1b08b6
commit
06d9602d33
3 changed files with 23 additions and 8 deletions
|
@ -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() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue