2018-08-08 12:28:26 +00:00
|
|
|
error[E0446]: private type `m1::Priv` in public interface
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/private-in-public-lint.rs:6:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | struct Priv;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ----------- `m1::Priv` declared as private
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | pub fn f() -> Priv {Priv}
|
2020-08-12 21:02:14 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ can't leak private type
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0446]: private type `m2::Priv` in public interface
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/private-in-public-lint.rs:15:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | struct Priv;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ----------- `m2::Priv` declared as private
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | pub fn f() -> Priv {Priv}
|
2020-08-12 21:02:14 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ can't leak private type
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0446`.
|