rust/tests/ui/imports/issue-8640.rs
Lukas Wirth 23d5231607 Use non-2015 edition paths in tests that do not test for their resolution
This allows for testing these tests on editions other than 2015
2025-06-03 10:13:33 +02:00

11 lines
175 B
Rust

#[allow(unused_imports)]
mod foo {
use crate::baz::bar;
mod bar {}
//~^ ERROR the name `bar` is defined multiple times
}
mod baz { pub mod bar {} }
fn main() {}