blob: a5aad3c669cc27cbfa3f63c5dd81a193e99c3808 (
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(()); }
|