summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/assoc-oddities-2.rs
blob: 3d35aad745589029ca527bedd217e0ad028f6e7e (plain)
1
2
3
4
5
6
// compile-flags: -Z parse-only

fn main() {
    // see assoc-oddities-1 for explanation
    x..if c { a } else { b }[n]; //~ ERROR expected one of
}