2018-02-07 19:35:35 -08:00
|
|
|
error[E0446]: private type `Foo::Bar` in public interface
|
|
|
|
--> $DIR/E0446.rs:14:5
|
|
|
|
|
|
2018-06-30 22:08:27 -07:00
|
|
|
LL | struct Bar(u32);
|
|
|
|
| - `Foo::Bar` declared as private
|
|
|
|
LL |
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | / pub fn bar() -> Bar { //~ ERROR E0446
|
|
|
|
LL | | Bar(0)
|
|
|
|
LL | | }
|
2018-02-07 19:35:35 -08:00
|
|
|
| |_____^ can't leak private type
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0446`.
|