summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-path-shl.rs
blob: 20a6fd83faa327fa9a6e63d86f7798abbc1337d7 (plain)
1
2
3
4
5
6
7
8
9
// Check that associated paths starting with `<<` are successfully parsed.

fn main() {
    let _: <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
    let _ = <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
    let <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
    let 0 ..= <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
    <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
}