E0112

var on a parameter other than the self receiver. A parameter is always an immutable binding.

Machine-applicable fix: Remove var.

Example

This program fails with E0112.

fn bump(var n: Int) -> Int {
    n + 1
}

Fixed

The same program, fixed.

fn bump(n: Int) -> Int {
    n + 1
}

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

All error codes