summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/check-cfg/check-cfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/check-cfg/check-cfg.rs')
-rw-r--r--tests/rustdoc-ui/check-cfg/check-cfg.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/check-cfg/check-cfg.rs b/tests/rustdoc-ui/check-cfg/check-cfg.rs
new file mode 100644
index 000000000..fa8789ad3
--- /dev/null
+++ b/tests/rustdoc-ui/check-cfg/check-cfg.rs
@@ -0,0 +1,7 @@
+// check-pass
+// compile-flags: --check-cfg=names() -Z unstable-options
+
+/// uniz is nor a builtin nor pass as arguments so is unexpected
+#[cfg(uniz)]
+//~^ WARNING unexpected `cfg` condition name
+pub struct Bar;