summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/resolve-pseudo-shadowing.rs
blob: 85c684ca0328e8258da389674be1524fdb085fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
// check that type parameters can't "shadow" qualified paths.

fn check<Clone>(_c: Clone) {
    fn check2() {
        let _ = <() as std::clone::Clone>::clone(&());
    }
    check2();
}

fn main() { check(()); }