2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2015-11-03 20:44:23 +02:00
|
|
|
// check that type parameters can't "shadow" qualified paths.
|
|
|
|
|
|
|
|
fn check<Clone>(_c: Clone) {
|
|
|
|
fn check2() {
|
2023-06-12 16:55:36 +08:00
|
|
|
let () = <() as std::clone::Clone>::clone(&());
|
2015-11-03 20:44:23 +02:00
|
|
|
}
|
|
|
|
check2();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { check(()); }
|