summary refs log tree commit diff
path: root/tests/ui/cfg/nested-cfg-attr-conditional-compilation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/cfg/nested-cfg-attr-conditional-compilation.rs')
-rw-r--r--tests/ui/cfg/nested-cfg-attr-conditional-compilation.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/cfg/nested-cfg-attr-conditional-compilation.rs b/tests/ui/cfg/nested-cfg-attr-conditional-compilation.rs
index 7618e83a642..c5d86a27d52 100644
--- a/tests/ui/cfg/nested-cfg-attr-conditional-compilation.rs
+++ b/tests/ui/cfg/nested-cfg-attr-conditional-compilation.rs
@@ -10,9 +10,10 @@
 //!
 //! Added in <https://github.com/rust-lang/rust/pull/34216>.
 
-#[cfg_attr(all(), cfg_attr(all(), cfg(false)))]
-fn f() {}
+#[cfg_attr(all(), cfg_attr(all(), cfg(false)))] //~ NOTE the item is gated here
+fn f() {} //~ NOTE found an item that was configured out
 
 fn main() {
     f() //~ ERROR cannot find function `f` in this scope
+    //~^ NOTE not found in this scope
 }