summary refs log tree commit diff
path: root/tests/ui/rustdoc/cfg-rustdoc.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rustdoc/cfg-rustdoc.stderr')
-rw-r--r--tests/ui/rustdoc/cfg-rustdoc.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/rustdoc/cfg-rustdoc.stderr b/tests/ui/rustdoc/cfg-rustdoc.stderr
index 340a8e22482..fd0fcfd01aa 100644
--- a/tests/ui/rustdoc/cfg-rustdoc.stderr
+++ b/tests/ui/rustdoc/cfg-rustdoc.stderr
@@ -3,6 +3,17 @@ error[E0425]: cannot find value `Foo` in this scope
    |
 LL |     let f = Foo;
    |             ^^^ not found in this scope
+   |
+note: found an item that was configured out
+  --> $DIR/cfg-rustdoc.rs:2:12
+   |
+LL | pub struct Foo;
+   |            ^^^
+note: the item is gated here
+  --> $DIR/cfg-rustdoc.rs:1:7
+   |
+LL | #[cfg(doc)]
+   |       ^^^
 
 error: aborting due to 1 previous error