summaryrefslogtreecommitdiffstats
path: root/tests/ui/malformed/malformed-special-attrs.rs
blob: 05b7ebe4666622c61f309087e983617db31c5dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg_attr] //~ ERROR malformed `cfg_attr` attribute
struct S1;

#[cfg_attr = ""] //~ ERROR malformed `cfg_attr` attribute
struct S2;

#[derive] //~ ERROR malformed `derive` attribute
struct S3;

#[derive = ""] //~ ERROR malformed `derive` attribute
struct S4;

fn main() {}