summary refs log tree commit diff
path: root/src/test/ui/issues/issue-32655.rs
blob: 4634179d4e1111bee84d0e61e21f9063029658cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![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() {}