summaryrefslogtreecommitdiffstats
path: root/src/test/ui/hygiene/privacy.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/hygiene/privacy.stderr')
-rw-r--r--src/test/ui/hygiene/privacy.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/hygiene/privacy.stderr b/src/test/ui/hygiene/privacy.stderr
new file mode 100644
index 000000000..70a24304d
--- /dev/null
+++ b/src/test/ui/hygiene/privacy.stderr
@@ -0,0 +1,15 @@
+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
+
+For more information about this error, try `rustc --explain E0603`.