about summary refs log tree commit diff
path: root/tests/ui/check-cfg/wrong-version-syntax.stderr
blob: 97157a0c02b97c6807ca1bb674eae1de2dc062de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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