E3012
E3012 — Type mismatch in struct field initialization
No example yet
No fixture in the test suite asserts this code, so there is no program here that is known to trigger it. That is a gap in our coverage rather than a statement about the code.
Contributing one is a good first change — add a fixture under tests/ with a CHECK line naming E3012, and this page picks it up.
Related
A tour of VxThe chapter covering the rule this code enforces.
All diagnosticsEvery code the compiler can emit, grouped by stage.
E3011An
as cast between two types that it does not convert, such as from an integer or a float to bool. Rust refuses the same casts. A comparison such as x != 0 says which values count as true.
E3013Missing struct field in initialization