]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-path-shl.rs
Merge commit 'a8385522ade6f67853edac730b5bf164ddb298fd' into simd-remove-autosplats
[rust.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 }