2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2022-10-19 04:55:31 +00:00
|
|
|
|
|
|
|
// Checks that the fix in #103222 doesn't also disqualify semicolons after
|
|
|
|
// closures within parentheses *in macros*, where they're totally allowed.
|
|
|
|
|
|
|
|
macro_rules! m {
|
|
|
|
(($expr:expr ; )) => {
|
|
|
|
$expr
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = m!(( ||() ; ));
|
|
|
|
}
|