summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0446.stderr
blob: b6a195c40a93a12e6b7d5772887922b50a8d562d (plain)
1
2
3
4
5
6
7
8
9
10
11
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`.