E0143

A comma between match arms. Each arm sits on its own line.

Machine-applicable fix: Remove the , when the next arm is already on its own line.

Example

This program fails with E0143.

fn show(x: Option<Int>) -> Int {
    match x {
        Some(_) => 1,
        None => 0
    }
}

Fixed

The same program, fixed.

fn show(x: Option<Int>) -> Int {
    match x {
        Some(_) => 1
        None => 0
    }
}

Listed in the checker notes. oskac explain E0143 prints this entry offline.

All error codes