summary refs log tree commit diff
path: root/tests/ui/rustdoc/cfg-rustdoc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rustdoc/cfg-rustdoc.rs')
-rw-r--r--tests/ui/rustdoc/cfg-rustdoc.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/ui/rustdoc/cfg-rustdoc.rs b/tests/ui/rustdoc/cfg-rustdoc.rs
index dd8e1ed97c4..11c48d07552 100644
--- a/tests/ui/rustdoc/cfg-rustdoc.rs
+++ b/tests/ui/rustdoc/cfg-rustdoc.rs
@@ -1,6 +1,7 @@
-#[cfg(doc)]
-pub struct Foo;
+#[cfg(doc)] //~ NOTE the item is gated here
+pub struct Foo; //~ NOTE found an item that was configured out
 
 fn main() {
-    let f = Foo; //~ ERROR
+    let f = Foo; //~ ERROR cannot find value `Foo` in this scope
+    //~^ NOTE not found in this scope
 }