mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 04:48:15 +00:00
18 lines
353 B
Rust
18 lines
353 B
Rust
//@ run-rustfix
|
|
|
|
#![deny(unused_parens)]
|
|
|
|
macro_rules! wrap {
|
|
($name:ident $arg:expr) => {
|
|
$name($arg);
|
|
};
|
|
}
|
|
|
|
fn main() {
|
|
wrap!(unary(routine())); //~ ERROR unnecessary parentheses around function argument
|
|
wrap!(unary (routine())); //~ ERROR unnecessary parentheses around function argument
|
|
}
|
|
|
|
fn unary(_: ()) {}
|
|
fn routine() {}
|