rust/tests/ui/malformed/malformed-special-attrs.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
275 B
Rust
Raw Normal View History

#[cfg_attr] //~ ERROR malformed `cfg_attr` attribute
struct S1;
2019-12-04 23:45:50 -06:00
#[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() {}