]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-path-shl.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[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                            //~^ ERROR only char and numeric types are allowed in range patterns
9     <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
10 }