@@ -60,12 +60,32 @@ LL | a + 1 => {}
6060 | ^ expected one of `(`, `::`, `=>`, or `=`
6161
6262error: expected one of `(`, `::`, `=>`, or `=`, found `!`
63- --> $DIR/cfg_select.rs:95 :8
63+ --> $DIR/cfg_select.rs:96 :8
6464 |
6565LL | cfg!() => {}
6666 | ^ expected one of `(`, `::`, `=>`, or `=`
6767
68- error: aborting due to 9 previous errors; 1 warning emitted
68+ warning: unexpected `cfg` condition name: `a`
69+ --> $DIR/cfg_select.rs:90:5
70+ |
71+ LL | a + 1 => {}
72+ | ^ help: found config with similar value: `target_feature = "a"`
73+ |
74+ = help: expected names are: `FALSE` and `test` and 31 more
75+ = help: to expect this configuration use `--check-cfg=cfg(a)`
76+ = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
77+ = note: `#[warn(unexpected_cfgs)]` on by default
78+
79+ warning: unexpected `cfg` condition name: `cfg`
80+ --> $DIR/cfg_select.rs:96:5
81+ |
82+ LL | cfg!() => {}
83+ | ^^^
84+ |
85+ = help: to expect this configuration use `--check-cfg=cfg(cfg)`
86+ = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
87+
88+ error: aborting due to 9 previous errors; 3 warnings emitted
6989
7090Some errors have detailed explanations: E0537, E0539.
7191For more information about an error, try `rustc --explain E0537`.
0 commit comments