]> git.proxmox.com Git - rustc.git/blame - src/test/ui/privacy/private-in-public-lint.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / privacy / private-in-public-lint.stderr
CommitLineData
b7449926 1error[E0446]: private type `m1::Priv` in public interface
0731742a 2 --> $DIR/private-in-public-lint.rs:6:9
b7449926
XL
3 |
4LL | struct Priv;
29967ef6 5 | ------------ `m1::Priv` declared as private
b7449926 6...
532ac7d7 7LL | pub fn f() -> Priv {Priv}
3dfed10e 8 | ^^^^^^^^^^^^^^^^^^ can't leak private type
b7449926
XL
9
10error[E0446]: private type `m2::Priv` in public interface
0731742a 11 --> $DIR/private-in-public-lint.rs:15:9
b7449926
XL
12 |
13LL | struct Priv;
29967ef6 14 | ------------ `m2::Priv` declared as private
b7449926 15...
532ac7d7 16LL | pub fn f() -> Priv {Priv}
3dfed10e 17 | ^^^^^^^^^^^^^^^^^^ can't leak private type
b7449926
XL
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0446`.