summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0446.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0446.stderr')
-rw-r--r--tests/ui/error-codes/E0446.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0446.stderr b/tests/ui/error-codes/E0446.stderr
new file mode 100644
index 000000000..b6a195c40
--- /dev/null
+++ b/tests/ui/error-codes/E0446.stderr
@@ -0,0 +1,12 @@
+error[E0446]: private type `Bar` in public interface
+ --> $DIR/E0446.rs:4:5
+ |
+LL | struct Bar(u32);
+ | ---------- `Bar` declared as private
+LL |
+LL | pub fn bar() -> Bar {
+ | ^^^^^^^^^^^^^^^^^^^ can't leak private type
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0446`.