syn
syn copied to clipboard
Incorrect disambiguation of `|| a .. b .. c`
let _ = || 0 .. 0 .. None.unwrap();
Rustc parses this as (|| (0..0))..None.unwrap()
which is of type Range<impl Fn() -> Range<int>>
.
Syn parses || ((0..0)..None.unwrap())
which is Range<Range<int>>
.
To be fair, it's impossible for me to tell whether this isn't a rustc bug.