mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
21 lines
284 B
Rust
21 lines
284 B
Rust
//@ run-pass
|
|
//@ edition:2018
|
|
|
|
use std;
|
|
use std::io;
|
|
|
|
mod foo {
|
|
pub use std as my_std;
|
|
}
|
|
|
|
mod bar {
|
|
pub use std::{self};
|
|
}
|
|
|
|
fn main() {
|
|
let _ = io::stdout();
|
|
let _ = self::std::io::stdout();
|
|
let _ = foo::my_std::io::stdout();
|
|
let _ = bar::std::io::stdout();
|
|
}
|