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