mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-21 20:23:21 +00:00
parent
2e7d1a1184
commit
2c7e737a06
@ -347,3 +347,15 @@ macro lex_err($kind: ident $(, $body: expr)*) {
|
|||||||
// Preserve trailing comma on item-level macro with `()` or `[]`.
|
// Preserve trailing comma on item-level macro with `()` or `[]`.
|
||||||
methods![ get, post, delete, ];
|
methods![ get, post, delete, ];
|
||||||
methods!( get, post, delete, );
|
methods!( get, post, delete, );
|
||||||
|
|
||||||
|
// #2591
|
||||||
|
fn foo() {
|
||||||
|
match 0u32 {
|
||||||
|
0 => (),
|
||||||
|
_ => unreachable!(/* obviously */),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn foo() {
|
||||||
|
let _ = column!(/* here */);
|
||||||
|
}
|
||||||
|
@ -922,3 +922,15 @@ macro lex_err($kind: ident $(, $body: expr)*) {
|
|||||||
// Preserve trailing comma on item-level macro with `()` or `[]`.
|
// Preserve trailing comma on item-level macro with `()` or `[]`.
|
||||||
methods![get, post, delete,];
|
methods![get, post, delete,];
|
||||||
methods!(get, post, delete,);
|
methods!(get, post, delete,);
|
||||||
|
|
||||||
|
// #2591
|
||||||
|
fn foo() {
|
||||||
|
match 0u32 {
|
||||||
|
0 => (),
|
||||||
|
_ => unreachable!(/* obviously */),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn foo() {
|
||||||
|
let _ = column!(/* here */);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user