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