mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
18 lines
453 B
Rust
18 lines
453 B
Rust
macro_rules! mac {
|
|
($attr_item: meta) => {
|
|
#[cfg($attr_item)]
|
|
//~^ ERROR expected unsuffixed literal, found `an(arbitrary token stream)`
|
|
//~| ERROR expected unsuffixed literal, found `an(arbitrary token stream)`
|
|
struct S;
|
|
}
|
|
}
|
|
|
|
mac!(an(arbitrary token stream));
|
|
|
|
#[cfg(feature = -1)]
|
|
//~^ ERROR expected unsuffixed literal, found `-`
|
|
//~| ERROR expected unsuffixed literal, found `-`
|
|
fn handler() {}
|
|
|
|
fn main() {}
|