Error code E0560
An unknown field was specified into a structure.
Erroneous code example:
#![allow(unused)]
fn main() {
struct Simba {
mother: u32,
}
let s = Simba { mother: 1, father: 0 };
// error: structure `Simba` has no field named `father`
}
Verify you didn’t misspell the field’s name or that the field exists. Example:
#![allow(unused)]
fn main() {
struct Simba {
mother: u32,
father: u32,
}
let s = Simba { mother: 1, father: 0 }; // ok!
}