summaryrefslogtreecommitdiffstats
path: root/src/test/ui/check-cfg/no-values.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/check-cfg/no-values.stderr')
-rw-r--r--src/test/ui/check-cfg/no-values.stderr21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/ui/check-cfg/no-values.stderr b/src/test/ui/check-cfg/no-values.stderr
new file mode 100644
index 000000000..7025b4cd7
--- /dev/null
+++ b/src/test/ui/check-cfg/no-values.stderr
@@ -0,0 +1,21 @@
+warning: unexpected `cfg` condition value
+ --> $DIR/no-values.rs:6:7
+ |
+LL | #[cfg(feature = "foo")]
+ | ^^^^^^^^^^^^^^^
+ |
+ = note: `#[warn(unexpected_cfgs)]` on by default
+ = note: no expected value for `feature`
+
+warning: unexpected `cfg` condition value
+ --> $DIR/no-values.rs:10:7
+ |
+LL | #[cfg(test = "foo")]
+ | ^^^^--------
+ | |
+ | help: remove the value
+ |
+ = note: no expected value for `test`
+
+warning: 2 warnings emitted
+