item_name_repetitions: exclude enum variants with identical path components
This commit is contained in:
parent
c1586e141f
commit
e89cf4d389
2 changed files with 41 additions and 2 deletions
|
|
@ -220,4 +220,19 @@ mod issue11494 {
|
|||
}
|
||||
}
|
||||
|
||||
mod encapsulated {
|
||||
mod types {
|
||||
pub struct FooError;
|
||||
pub struct BarError;
|
||||
pub struct BazError;
|
||||
}
|
||||
|
||||
enum Error {
|
||||
FooError(types::FooError),
|
||||
BarError(types::BarError),
|
||||
BazError(types::BazError),
|
||||
Other,
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue