summaryrefslogtreecommitdiffstats
path: root/tests/ui/check-cfg/no-expected-values.simple.stderr
blob: ae55c95c0b1806b2268a7ff6b93582df481da960 (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
warning: unexpected `cfg` condition value: `foo`
  --> $DIR/no-expected-values.rs:11:7
   |
LL | #[cfg(feature = "foo")]
   |       ^^^^^^^--------
   |              |
   |              help: remove the value
   |
   = note: no expected value for `feature`
   = help: to expect this configuration use `--check-cfg=cfg(feature, values("foo"))`
   = note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
   = note: `#[warn(unexpected_cfgs)]` on by default

warning: unexpected `cfg` condition value: `foo`
  --> $DIR/no-expected-values.rs:15:7
   |
LL | #[cfg(test = "foo")]
   |       ^^^^--------
   |           |
   |           help: remove the value
   |
   = note: no expected value for `test`
   = help: to expect this configuration use `--check-cfg=cfg(test, values("foo"))`
   = note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration

warning: 2 warnings emitted