E0226

Named field constructed without its label.

Machine-applicable fix: Insert the field's label.

Example

This program fails with E0226.

struct Point { x: Int, y: Int }

fn main() {
    let p = Point(1, 2)
}

Fixed

The same program, fixed.

struct Point { x: Int, y: Int }

fn main() {
    let p = Point(x: 1, y: 2)
}

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

All error codes