error: operating system used in target family position
  --> $DIR/mismatched_target_os_non_unix.rs:6:1
   |
LL | #[cfg(hermit)]
   | ^^^^^^------^^
   |       |
   |       help: try: `target_os = "hermit"`
   |
   = note: `-D clippy::mismatched-target-os` implied by `-D warnings`

error: operating system used in target family position
  --> $DIR/mismatched_target_os_non_unix.rs:9:1
   |
LL | #[cfg(wasi)]
   | ^^^^^^----^^
   |       |
   |       help: try: `target_os = "wasi"`

error: operating system used in target family position
  --> $DIR/mismatched_target_os_non_unix.rs:12:1
   |
LL | #[cfg(none)]
   | ^^^^^^----^^
   |       |
   |       help: try: `target_os = "none"`

error: operating system used in target family position
  --> $DIR/mismatched_target_os_non_unix.rs:16:1
   |
LL | #[cfg(all(not(windows), wasi))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^----^^^
   |                         |
   |                         help: try: `target_os = "wasi"`

error: aborting due to 4 previous errors