summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-32655.rs
blob: f52e09231296804cd797f5226401f3f64a6a2b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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() {}