summaryrefslogtreecommitdiffstats
path: root/src/test/ui/privacy/private-item-simple.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/privacy/private-item-simple.stderr')
-rw-r--r--src/test/ui/privacy/private-item-simple.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/privacy/private-item-simple.stderr b/src/test/ui/privacy/private-item-simple.stderr
new file mode 100644
index 000000000..e3d90150e
--- /dev/null
+++ b/src/test/ui/privacy/private-item-simple.stderr
@@ -0,0 +1,15 @@
+error[E0603]: function `f` is private
+ --> $DIR/private-item-simple.rs:6:8
+ |
+LL | a::f();
+ | ^ private function
+ |
+note: the function `f` is defined here
+ --> $DIR/private-item-simple.rs:2:5
+ |
+LL | fn f() {}
+ | ^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0603`.