mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
10 lines
182 B
Rust
10 lines
182 B
Rust
macro_rules! foo {
|
|
($e:expr) => {
|
|
#[cfg_attr(true, $e)]
|
|
//~^ ERROR expected identifier, found metavariable
|
|
fn foo() {}
|
|
}
|
|
}
|
|
foo!(inline);
|
|
fn main() {}
|