summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rust-2018/uniform-paths/redundant.rs
blob: fd7fc7fbd41b774dfc6ba266d2edd8f1d3825284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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();
}