2018-09-10 00:47:40 -05:00
|
|
|
// run-pass
|
2018-08-16 07:59:33 -05:00
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
use std;
|
2018-09-10 00:47:40 -05:00
|
|
|
use std::io;
|
2018-08-16 07:59:33 -05:00
|
|
|
|
2018-09-06 14:07:56 -05:00
|
|
|
mod foo {
|
|
|
|
pub use std as my_std;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod bar {
|
|
|
|
pub use std::{self};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2021-10-30 21:58:27 -05:00
|
|
|
let _ = io::stdout();
|
|
|
|
let _ = self::std::io::stdout();
|
|
|
|
let _ = foo::my_std::io::stdout();
|
|
|
|
let _ = bar::std::io::stdout();
|
2018-09-06 14:07:56 -05:00
|
|
|
}
|