]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/imports/issue-4366-2.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / imports / issue-4366-2.stderr
index a86ec7fabea4bf37690c55ff9175e20eacb00782..4c94634ee60f7d459959efe76f13adcfbfe5042c 100644 (file)
@@ -4,10 +4,11 @@ error[E0412]: cannot find type `Bar` in this scope
 LL |         fn sub() -> Bar { 1 }
    |                     ^^^ not found in this scope
    |
-help: consider importing this type alias
-   |
-LL |         use a::b::Bar;
+note: type alias `a::b::Bar` exists but is inaccessible
+  --> $DIR/issue-4366-2.rs:11:9
    |
+LL |         type Bar = isize;
+   |         ^^^^^^^^^^^^^^^^^ not accessible
 
 error[E0423]: expected function, found module `foo`
   --> $DIR/issue-4366-2.rs:25:5