E0225

Argument label that does not match its parameter or field, or a label on a positional field.

Machine-applicable fix: Replace the label with the parameter's name, or remove it.

Example

This program fails with E0225.

fn add(a: Int, b: Int) -> Int {
    a + b
}

fn main() {
    let n = add(x: 1, b: 2)
}

Fixed

The same program, fixed.

fn add(a: Int, b: Int) -> Int {
    a + b
}

fn main() {
    let n = add(a: 1, b: 2)
}

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

All error codes