rust/tests/ui/use/use-mod/use-mod.rs
Eric Huss 2da2ade0f7 Rename tests to ensure they don't have overlapping names.
Some tests will delete their output directory before starting.
The output directory is based on the test names.
If one test is the prefix of another test, then when that test
starts, it could try to delete the output directory of the other
test with the longer path.
2023-03-22 21:12:40 -07:00

20 lines
358 B
Rust

use foo::bar::{
self,
//~^ ERROR `self` import can only appear once in an import list
Bar,
self
//~^ ERROR the name `bar` is defined multiple times
};
use {self};
//~^ ERROR `self` import can only appear in an import list with a non-empty prefix
mod foo {
pub mod bar {
pub struct Bar;
pub struct Baz;
}
}
fn main() {}