E0227

Unknown field, or a method used without calling it.

Machine-applicable fix: Replace the field with the single closest field, when one is close enough.

Example

This program fails with E0227.

struct Point { x: Int, y: Int }

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

Fixed

The same program, fixed.

struct Point { x: Int, y: Int }

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

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

All error codes