]> git.lizzy.rs Git - rust.git/blob - tests/ui/malformed/malformed-special-attrs.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / malformed / malformed-special-attrs.rs
1 #[cfg_attr] //~ ERROR malformed `cfg_attr` attribute
2 struct S1;
3
4 #[cfg_attr = ""] //~ ERROR malformed `cfg_attr` attribute
5 struct S2;
6
7 #[derive] //~ ERROR malformed `derive` attribute
8 struct S3;
9
10 #[derive = ""] //~ ERROR malformed `derive` attribute
11 struct S4;
12
13 fn main() {}