fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0446]: private type `foo::Bar` in public interface 2 --> $DIR/E0446.rs:4:5 3 | 4LL | struct Bar(u32); 5 | - `foo::Bar` declared as private 6LL | 7LL | / pub fn bar() -> Bar { 8LL | | Bar(0) 9LL | | } 10 | |_____^ can't leak private type 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0446`.