summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/private-in-public-lint.stderr
blob: 1e98e3bed147c4a9b6c741bce91d169fb7ec54f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0446]: private type `m1::Priv` in public interface
  --> $DIR/private-in-public-lint.rs:6:9
   |
LL |     struct Priv;
   |     ----------- `m1::Priv` declared as private
...
LL |         pub fn f() -> Priv {Priv}
   |         ^^^^^^^^^^^^^^^^^^ can't leak private type

error[E0446]: private type `m2::Priv` in public interface
  --> $DIR/private-in-public-lint.rs:15:9
   |
LL |     struct Priv;
   |     ----------- `m2::Priv` declared as private
...
LL |         pub fn f() -> Priv {Priv}
   |         ^^^^^^^^^^^^^^^^^^ can't leak private type

error: aborting due to 2 previous errors

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