rust/tests/ui/associated-path-shl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
429 B
Rust
Raw Normal View History

2016-10-20 04:33:41 +08:00
// 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
2016-10-20 04:33:41 +08:00
}