mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
Test for single arm in struct
This commit is contained in:
parent
30aec386f4
commit
e44a7a2800
@ -100,3 +100,14 @@ fn issue123() {
|
||||
|
||||
Foo { a: ddddddddddddddddddddd, b: cccccccccccccccccccccccccccccccccccccc };
|
||||
}
|
||||
|
||||
fn issue491() {
|
||||
Foo {
|
||||
guard: None,
|
||||
arm: 0, // Comment
|
||||
};
|
||||
|
||||
Foo {
|
||||
arm: 0, // Comment
|
||||
};
|
||||
}
|
||||
|
@ -132,3 +132,12 @@ fn issue123() {
|
||||
b: cccccccccccccccccccccccccccccccccccccc,
|
||||
};
|
||||
}
|
||||
|
||||
fn issue491() {
|
||||
Foo {
|
||||
guard: None,
|
||||
arm: 0, // Comment
|
||||
};
|
||||
|
||||
Foo { arm: 0 /* Comment */ };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user