mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
add tests that fail because of comma insertion
Signed-off-by: Ryan1729 <Ryan1729@gmail.com>
This commit is contained in:
parent
f63815ee95
commit
822b266a3d
@ -109,3 +109,14 @@ fn function_calls() {
|
||||
span.lo,
|
||||
span.hi)
|
||||
}
|
||||
|
||||
fn macros() {
|
||||
baz!(do_not, add, trailing, commas, inside, of, function, like, macros, even, if_they, are, long);
|
||||
|
||||
baz!(one_item_macro_which_is_also_loooooooooooooooooooooooooooooooooooooooooooooooong);
|
||||
|
||||
let _ = match option {
|
||||
None => baz!(function, like, macro_as, expression, which, is, loooooooooooooooong),
|
||||
Some(p) => baz!(one_item_macro_as_expression_which_is_also_loooooooooooooooong),
|
||||
};
|
||||
}
|
||||
|
@ -149,3 +149,38 @@ fn function_calls() {
|
||||
span.hi,
|
||||
)
|
||||
}
|
||||
|
||||
fn macros() {
|
||||
baz!(
|
||||
do_not,
|
||||
add,
|
||||
trailing,
|
||||
commas,
|
||||
inside,
|
||||
of,
|
||||
function,
|
||||
like,
|
||||
macros,
|
||||
even,
|
||||
if_they,
|
||||
are,
|
||||
long
|
||||
);
|
||||
|
||||
baz!(one_item_macro_which_is_also_loooooooooooooooooooooooooooooooooooooooooooooooong);
|
||||
|
||||
let _ = match option {
|
||||
None => {
|
||||
baz!(
|
||||
function,
|
||||
like,
|
||||
macro_as,
|
||||
expression,
|
||||
which,
|
||||
is,
|
||||
loooooooooooooooong
|
||||
)
|
||||
}
|
||||
Some(p) => baz!(one_item_macro_as_expression_which_is_also_loooooooooooooooong),
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user