]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-path-shl.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / associated-path-shl.rs
1 // Check that associated paths starting with `<<` are successfully parsed.
2
3 fn main() {
4 let _: <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
5 let _ = <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
6 let <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
7 let 0 ..= <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
8 <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
9 }