mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
13 lines
351 B
Plaintext
13 lines
351 B
Plaintext
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`.
|