summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/unresolved-segments-visibility.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/unresolved-segments-visibility.rs')
-rw-r--r--tests/ui/resolve/unresolved-segments-visibility.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/resolve/unresolved-segments-visibility.rs b/tests/ui/resolve/unresolved-segments-visibility.rs
new file mode 100644
index 000000000..c26171f75
--- /dev/null
+++ b/tests/ui/resolve/unresolved-segments-visibility.rs
@@ -0,0 +1,11 @@
+// Check that we do not ICE due to unresolved segments in visibility path.
+#![crate_type = "lib"]
+
+extern crate alloc as b;
+
+mod foo {
+ mod bar {
+ pub(in b::string::String::newy) extern crate alloc as e;
+ //~^ ERROR failed to resolve: `String` is a struct, not a module [E0433]
+ }
+}