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