rust/tests/ui/rust-2018/uniform-paths/redundant.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
282 B
Rust
Raw Normal View History

// 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();
}