2016-10-19 23:33:41 +03:00
|
|
|
// Check that associated paths starting with `<<` are successfully parsed.
|
|
|
|
|
|
|
|
fn main() {
|
2017-01-12 01:18:08 +03:00
|
|
|
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
|
2018-05-28 19:42:11 -07:00
|
|
|
let 0 ..= <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
|
2017-01-12 01:18:08 +03:00
|
|
|
<<A>::B>::C; //~ ERROR cannot find type `A` in this scope
|
2016-10-19 23:33:41 +03:00
|
|
|
}
|