summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0446.stderr
blob: a0f5f7079b34c3a62ef70678689e783a94f3c6b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0446]: private type `foo::Bar` in public interface
  --> $DIR/E0446.rs:4:5
   |
LL |       struct Bar(u32);
   |       - `foo::Bar` declared as private
LL | 
LL | /     pub fn bar() -> Bar {
LL | |         Bar(0)
LL | |     }
   | |_____^ can't leak private type

error: aborting due to previous error

For more information about this error, try `rustc --explain E0446`.