mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
18 lines
620 B
Plaintext
18 lines
620 B
Plaintext
warning: unexpected `cfg` condition name: `version`
|
|
--> $DIR/wrong-version-syntax.rs:10:11
|
|
|
|
|
LL | #[cfg(not(version = "1.48.0"))]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: to expect this configuration use `--check-cfg=cfg(version, values("1.48.0"))`
|
|
= 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
|
|
help: there is a similar config predicate: `version("..")`
|
|
|
|
|
LL - #[cfg(not(version = "1.48.0"))]
|
|
LL + #[cfg(not(version("1.48.0")))]
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|