mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
14 lines
186 B
Rust
14 lines
186 B
Rust
struct A {
|
|
foo : i32,
|
|
car : i32,
|
|
barr : i32
|
|
}
|
|
|
|
fn main() {
|
|
let a = A {
|
|
foo : 5,
|
|
bar : 42,
|
|
//~^ ERROR struct `A` has no field named `bar`
|
|
};
|
|
}
|