summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-75906.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-75906.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-75906.stderr b/src/test/ui/issues/issue-75906.stderr
new file mode 100644
index 000000000..4c6a68646
--- /dev/null
+++ b/src/test/ui/issues/issue-75906.stderr
@@ -0,0 +1,15 @@
+error[E0423]: cannot initialize a tuple struct which contains private fields
+ --> $DIR/issue-75906.rs:11:13
+ |
+LL | let y = Bar(12);
+ | ^^^
+ |
+note: constructor is not visible here due to private fields
+ --> $DIR/issue-75906.rs:4:20
+ |
+LL | pub struct Bar(u8);
+ | ^^ private field
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0423`.