Add test for #[allow(module_inception)]
on the inner module
This commit is contained in:
parent
cb49e4e210
commit
8216036193
1 changed files with 7 additions and 0 deletions
|
@ -14,4 +14,11 @@ mod foo {
|
|||
}
|
||||
}
|
||||
|
||||
// No warning. See <https://github.com/Manishearth/rust-clippy/issues/1220>.
|
||||
mod bar {
|
||||
#[allow(module_inception)]
|
||||
mod bar {
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
Loading…
Reference in a new issue