summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nested-cfg-attrs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/nested-cfg-attrs.rs')
-rw-r--r--src/test/ui/nested-cfg-attrs.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/nested-cfg-attrs.rs b/src/test/ui/nested-cfg-attrs.rs
new file mode 100644
index 000000000..c988d4233
--- /dev/null
+++ b/src/test/ui/nested-cfg-attrs.rs
@@ -0,0 +1,4 @@
+#[cfg_attr(all(), cfg_attr(all(), cfg(foo)))]
+fn f() {}
+
+fn main() { f() } //~ ERROR cannot find function `f` in this scope