summaryrefslogtreecommitdiffstats
path: root/src/test/ui/privacy/private-method-cross-crate.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/privacy/private-method-cross-crate.stderr')
-rw-r--r--src/test/ui/privacy/private-method-cross-crate.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/privacy/private-method-cross-crate.stderr b/src/test/ui/privacy/private-method-cross-crate.stderr
new file mode 100644
index 000000000..93f6a7f2f
--- /dev/null
+++ b/src/test/ui/privacy/private-method-cross-crate.stderr
@@ -0,0 +1,14 @@
+error[E0624]: associated function `nap` is private
+ --> $DIR/private-method-cross-crate.rs:7:8
+ |
+LL | nyan.nap();
+ | ^^^ private associated function
+ |
+ ::: $DIR/auxiliary/cci_class_5.rs:8:9
+ |
+LL | fn nap(&self) {}
+ | ------------- private associated function defined here
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0624`.