]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/hygiene/privacy.stderr
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / privacy.stderr
index 80fb4dd0f314aa9d8ddee07b7839e431370bb62b..70a24304dda3338dcb73714bc0247566e0560249 100644 (file)
@@ -2,7 +2,13 @@ error[E0603]: function `f` is private
   --> $DIR/privacy.rs:16:14
    |
 LL |         foo::f()
-   |              ^
+   |              ^ private function
+   |
+note: the function `f` is defined here
+  --> $DIR/privacy.rs:4:5
+   |
+LL |     fn f() {}
+   |     ^^^^^^
 
 error: aborting due to previous error