rust/tests/ui/imports/issue-8208.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

18 lines
462 B
Rust

use self::*; //~ ERROR: unresolved import `self::*` [E0432]
//~^ NOTE cannot glob-import a module into itself
mod foo {
use crate::foo::*; //~ ERROR: unresolved import `crate::foo::*` [E0432]
//~^ NOTE cannot glob-import a module into itself
mod bar {
use super::bar::*;
//~^ ERROR: unresolved import `super::bar::*` [E0432]
//~| NOTE cannot glob-import a module into itself
}
}
fn main() {
}