rust/tests/ui/malformed/malformed-special-attrs.rs
2023-01-11 09:32:08 +00:00

14 lines
275 B
Rust

#[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() {}