]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-path-shl.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / 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 }