1
Fork 0
rust/tests/ui/structs/struct-fields-hints-no-dupe.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
203 B
Rust
Raw Normal View History

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`
car : 9,
};
}