E0231

Call of a value that is not a function.

Machine-applicable fix: none.

Example

This program fails with E0231.

fn main() {
    let x = 1
    x()
}

Fixed

The same program, fixed.

fn main() {
    let f = || 1
    let y = f()
}

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

All error codes