2019-07-27 00:54:25 +03: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() {
|
2018-10-11 23:10:37 -07:00
|
|
|
let _ = <() as std::clone::Clone>::clone(&());
|
2015-11-03 20:44:23 +02:00
|
|
|
}
|
|
|
|
check2();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { check(()); }
|