E0103

A bare { ... } block used as a statement.

Machine-applicable fix: none.

Example

This program fails with E0103.

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

Fixed

The same program, fixed.

fn main() {
    let x = 1
}

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

All error codes