Test for single arm in struct

This commit is contained in:
David Barnett 2015-11-18 23:30:23 +13:00
parent 30aec386f4
commit e44a7a2800
2 changed files with 20 additions and 0 deletions

View File

@ -100,3 +100,14 @@ fn issue123() {
Foo { a: ddddddddddddddddddddd, b: cccccccccccccccccccccccccccccccccccccc };
}
fn issue491() {
Foo {
guard: None,
arm: 0, // Comment
};
Foo {
arm: 0, // Comment
};
}

View File

@ -132,3 +132,12 @@ fn issue123() {
b: cccccccccccccccccccccccccccccccccccccc,
};
}
fn issue491() {
Foo {
guard: None,
arm: 0, // Comment
};
Foo { arm: 0 /* Comment */ };
}