mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
Add a test for #2087
This commit is contained in:
parent
0a59654b41
commit
daf4789b76
@ -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? );
|
||||
|
||||
|
@ -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? );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user