2024-01-28 11:13:02 +08:00
|
|
|
warning: unexpected `cfg` condition name: `my_value`
|
2024-04-09 14:07:30 +02:00
|
|
|
--> $DIR/cfg-value-for-cfg-name-multiple.rs:8:7
|
2024-01-28 11:13:02 +08:00
|
|
|
|
|
|
|
|
|
LL | #[cfg(my_value)]
|
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
2025-01-30 13:09:14 -08:00
|
|
|
= help: expected names are: `bar` and `foo` and 31 more
|
2024-01-28 11:13:02 +08:00
|
|
|
= help: to expect this configuration use `--check-cfg=cfg(my_value)`
|
2024-02-25 15:45:43 +01:00
|
|
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
2024-01-28 11:13:02 +08:00
|
|
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
|
|
|
|
help: found config with similar value
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[cfg(my_value)]
|
|
|
|
|
LL + #[cfg(foo = "my_value")]
|
|
|
|
|
|
|
2024-01-28 11:13:02 +08:00
|
|
|
help: found config with similar value
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - #[cfg(my_value)]
|
|
|
|
|
LL + #[cfg(bar = "my_value")]
|
|
|
|
|
|
|
2024-01-28 11:13:02 +08:00
|
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|
|