mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
517374150c
this directive prevents compiletest from adding any implicit and automatic --check-cfg arguments
27 lines
936 B
Plaintext
27 lines
936 B
Plaintext
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/rustc/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`
|
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
|
|
|
warning: 2 warnings emitted
|
|
|