diff --git a/tests/compile-fail/module_inception.rs b/tests/compile-fail/module_inception.rs index 88497c9a6a7d..861ed504c86e 100644 --- a/tests/compile-fail/module_inception.rs +++ b/tests/compile-fail/module_inception.rs @@ -14,4 +14,11 @@ mod foo { } } +// No warning. See . +mod bar { + #[allow(module_inception)] + mod bar { + } +} + fn main() {}