summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/private-struct-field-ctor.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/privacy/private-struct-field-ctor.stderr')
-rw-r--r--tests/ui/privacy/private-struct-field-ctor.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/privacy/private-struct-field-ctor.stderr b/tests/ui/privacy/private-struct-field-ctor.stderr
new file mode 100644
index 000000000..9dc9db0ea
--- /dev/null
+++ b/tests/ui/privacy/private-struct-field-ctor.stderr
@@ -0,0 +1,9 @@
+error[E0451]: field `x` of struct `Foo` is private
+ --> $DIR/private-struct-field-ctor.rs:8:22
+ |
+LL | let s = a::Foo { x: 1 };
+ | ^^^^ private field
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0451`.