mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
20 lines
317 B
Rust
20 lines
317 B
Rust
macro_rules! foo (
|
|
() => (
|
|
#[derive_Clone] //~ ERROR cannot find attribute `derive_Clone` in this scope
|
|
struct T;
|
|
);
|
|
);
|
|
|
|
macro_rules! bar (
|
|
($e:item) => ($e)
|
|
);
|
|
|
|
foo!();
|
|
|
|
bar!(
|
|
#[derive_Clone] //~ ERROR cannot find attribute `derive_Clone` in this scope
|
|
struct S;
|
|
);
|
|
|
|
fn main() {}
|