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