E0212

main returns something other than () or Result<(), E> (spans the return type), or E has no impl Display (spans E).

Machine-applicable fix: none.

Example

This program fails with E0212.

fn main() -> Int {
    0
}

Fixed

The same program, fixed.

fn main() {}

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

All error codes