mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
19 lines
317 B
Rust
19 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() {}
|