This commit is contained in:
parent
b2462aa0e1
commit
cb4de738cf
4 changed files with 39 additions and 5 deletions
10
src/test/compile-fail/struct-fields-missing.rs
Normal file
10
src/test/compile-fail/struct-fields-missing.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
struct BuildData {
|
||||
foo: int,
|
||||
bar: ~int
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let foo = BuildData { //~ ERROR missing field: `bar`
|
||||
foo: 0
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue