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!
}
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0560.html