item_name_repetitions: exclude enum variants with identical path components

This commit is contained in:
Aaron Ang 2025-04-15 11:09:46 -07:00 committed by Aaron Ang
parent c1586e141f
commit e89cf4d389
2 changed files with 41 additions and 2 deletions

View file

@ -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() {}