mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
20 lines
351 B
Rust
20 lines
351 B
Rust
mod foo {
|
|
pub struct A;
|
|
pub struct B;
|
|
}
|
|
|
|
use foo::{self};
|
|
//~^ ERROR is defined multiple times
|
|
|
|
use foo as self;
|
|
//~^ ERROR expected identifier
|
|
|
|
use foo::self; //~ ERROR is defined multiple times
|
|
//~^ ERROR `self` imports are only allowed within a { } list
|
|
|
|
use foo::A;
|
|
use foo::{self as A};
|
|
//~^ ERROR is defined multiple times
|
|
|
|
fn main() {}
|