]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve-pseudo-shadowing.rs
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / resolve-pseudo-shadowing.rs
1 // run-pass
2 // check that type parameters can't "shadow" qualified paths.
3
4 fn check<Clone>(_c: Clone) {
5     fn check2() {
6         let _ = <() as std::clone::Clone>::clone(&());
7     }
8     check2();
9 }
10
11 fn main() { check(()); }