// path attrs
#[clippy::bar]
-#[clippy::bar=foo]
#[clippy::bar(a, b, c)]
pub fn foo() {}
target_os = "cloudabi",
target_os = "macos", target_os = "ios",
target_os = "freebsd",
- target_os = "openbsd", target_os = "bitrig",
+ target_os = "openbsd",
target_os = "redox",
target_os = "fuchsia",
windows,
let foo ;
#[must_use]
foo = false ;
-}
\ No newline at end of file
+}
+
+// #3509
+fn issue3509() {
+ match MyEnum {
+ MyEnum::Option1 if cfg!(target_os = "windows") =>
+ #[cfg(target_os = "windows")]{
+ 1
+ }
+ }
+ match MyEnum {
+ MyEnum::Option1 if cfg!(target_os = "windows") =>
+ #[cfg(target_os = "windows")]
+ 1,
+ }
+}