summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/private-struct-field-cross-crate.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/privacy/private-struct-field-cross-crate.stderr')
-rw-r--r--tests/ui/privacy/private-struct-field-cross-crate.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/privacy/private-struct-field-cross-crate.stderr b/tests/ui/privacy/private-struct-field-cross-crate.stderr
new file mode 100644
index 000000000..40cf3448d
--- /dev/null
+++ b/tests/ui/privacy/private-struct-field-cross-crate.stderr
@@ -0,0 +1,9 @@
+error[E0616]: field `meows` of struct `cat` is private
+ --> $DIR/private-struct-field-cross-crate.rs:7:19
+ |
+LL | assert_eq!(nyan.meows, 52);
+ | ^^^^^ private field
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0616`.