summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/cfg_features.stderr
blob: 401c3e92ed9525c3a000de519dfe9311b9a502ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
error: feature may misspelled as features
  --> $DIR/cfg_features.rs:4:11
   |
LL |     #[cfg(features = "not-really-a-feature")]
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `feature = "not-really-a-feature"`
   |
   = note: `-D clippy::maybe-misused-cfg` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::maybe_misused_cfg)]`

error: feature may misspelled as features
  --> $DIR/cfg_features.rs:9:34
   |
LL |     #[cfg(all(feature = "right", features = "wrong"))]
   |                                  ^^^^^^^^^^^^^^^^^^ help: use: `feature = "wrong"`

error: feature may misspelled as features
  --> $DIR/cfg_features.rs:13:15
   |
LL |     #[cfg(all(features = "wrong1", any(feature = "right", features = "wrong2", feature, features)))]
   |               ^^^^^^^^^^^^^^^^^^^ help: use: `feature = "wrong1"`

error: feature may misspelled as features
  --> $DIR/cfg_features.rs:13:59
   |
LL |     #[cfg(all(features = "wrong1", any(feature = "right", features = "wrong2", feature, features)))]
   |                                                           ^^^^^^^^^^^^^^^^^^^ help: use: `feature = "wrong2"`

error: aborting due to 4 previous errors