2 // compile-flags:--cfg set1 --cfg set2
8 #[cfg_attr(set1, derive(Debug))]
11 #[cfg_attr(notset, derive(Debug))]
12 struct Notset(NotDebugable);
14 #[cfg_attr(not(notset), derive(Debug))]
17 #[cfg_attr(not(set1), derive(Debug))]
18 struct NotSet1(NotDebugable);
20 #[cfg_attr(all(set1, set2), derive(Debug))]
23 #[cfg_attr(all(set1, notset), derive(Debug))]
24 struct AllSet1Notset(NotDebugable);
26 #[cfg_attr(any(set1, notset), derive(Debug))]
29 #[cfg_attr(any(notset, notset2), derive(Debug))]
30 struct AnyNotsetNotset2(NotDebugable);
32 #[cfg_attr(all(not(notset), any(set1, notset)), derive(Debug))]
35 #[cfg_attr(any(notset, not(any(set1, notset))), derive(Debug))]
36 struct ComplexNot(NotDebugable);
38 #[cfg_attr(any(target_endian = "little", target_endian = "big"), derive(Debug))]
41 fn is_show<T: Debug>() {}
45 is_show::<NotNotset>();
46 is_show::<AllSet1Set2>();
47 is_show::<AnySet1Notset>();
49 is_show::<KeyValue>();