mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
19 lines
258 B
Rust
19 lines
258 B
Rust
use foo::bar::{
|
|
self,
|
|
Bar,
|
|
self
|
|
//~^ ERROR the name `bar` is defined multiple times
|
|
};
|
|
|
|
use {self};
|
|
//~^ ERROR imports need to be explicitly named
|
|
|
|
mod foo {
|
|
pub mod bar {
|
|
pub struct Bar;
|
|
pub struct Baz;
|
|
}
|
|
}
|
|
|
|
fn main() {}
|