Add a test for #2087

This commit is contained in:
topecongiro 2017-10-27 16:35:40 +09:00
parent 0a59654b41
commit daf4789b76
2 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,12 @@ fn main() {
kaas!(/* comments */ a /* post macro */, b /* another */);
trailingcomma!( a , b , c , );
// Preserve trailing comma only when necessary.
ok!(file.seek(
SeekFrom::Start(
table.map(|table| fixture.offset(table)).unwrap_or(0),
)
));
noexpr!( i am not an expression, OK? );

View File

@ -33,6 +33,10 @@ fn main() {
);
trailingcomma!(a, b, c,);
// Preserve trailing comma only when necessary.
ok!(file.seek(SeekFrom::Start(
table.map(|table| fixture.offset(table)).unwrap_or(0),
)));
noexpr!( i am not an expression, OK? );