rust-clippy/tests/ui/non_minimal_cfg.stderr

30 lines
952 B
Text
Raw Normal View History

error: unneeded sub `cfg` when there is only one condition
2024-02-17 12:16:29 +00:00
--> tests/ui/non_minimal_cfg.rs:3:7
|
LL | #[cfg(all(windows))]
| ^^^^^^^^^^^^ help: try: `windows`
|
= note: `-D clippy::non-minimal-cfg` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::non_minimal_cfg)]`
error: unneeded sub `cfg` when there is only one condition
2024-02-17 12:16:29 +00:00
--> tests/ui/non_minimal_cfg.rs:6:7
|
LL | #[cfg(any(windows))]
| ^^^^^^^^^^^^ help: try: `windows`
error: unneeded sub `cfg` when there is only one condition
2024-02-17 12:16:29 +00:00
--> tests/ui/non_minimal_cfg.rs:9:11
|
LL | #[cfg(all(any(unix), all(not(windows))))]
| ^^^^^^^^^ help: try: `unix`
error: unneeded sub `cfg` when there is only one condition
2024-02-17 12:16:29 +00:00
--> tests/ui/non_minimal_cfg.rs:9:22
|
LL | #[cfg(all(any(unix), all(not(windows))))]
| ^^^^^^^^^^^^^^^^^ help: try: `not(windows)`
error: aborting due to 4 previous errors