rust/src/test/ui/issues/issue-32655.rs
2018-12-25 21:08:33 -07:00

23 lines
354 B
Rust

#![allow(dead_code)]
#![feature(rustc_attrs)]
macro_rules! foo (
() => (
#[derive_Clone] //~ ERROR attribute `derive_Clone` is currently unknown
struct T;
);
);
macro_rules! bar (
($e:item) => ($e)
);
foo!();
bar!(
#[derive_Clone] //~ ERROR attribute `derive_Clone` is currently unknown
struct S;
);
fn main() {}