about summary refs log tree commit diff
path: root/tests/ui/resolve/visibility-indeterminate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/visibility-indeterminate.rs')
-rw-r--r--tests/ui/resolve/visibility-indeterminate.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/resolve/visibility-indeterminate.rs b/tests/ui/resolve/visibility-indeterminate.rs
new file mode 100644
index 00000000000..0e1142db37d
--- /dev/null
+++ b/tests/ui/resolve/visibility-indeterminate.rs
@@ -0,0 +1,7 @@
+// edition:2018
+
+foo!(); //~ ERROR cannot find macro `foo` in this scope
+
+pub(in ::bar) struct Baz {} //~ ERROR cannot determine resolution for the visibility
+
+fn main() {}