rust/src/test/run-pass/resolve-pseudo-shadowing.rs
2018-12-25 21:08:33 -07:00

11 lines
213 B
Rust

// 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(()); }