]> git.proxmox.com Git - rustc.git/blame - src/test/ui/privacy/issue-30079.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / privacy / issue-30079.stderr
CommitLineData
8faf50e0 1warning: private type `m1::Priv` in public interface (error E0446)
0731742a 2 --> $DIR/issue-30079.rs:6:9
8faf50e0 3 |
532ac7d7 4LL | pub fn f(_: Priv) {}
3dfed10e 5 | ^^^^^^^^^^^^^^^^^
8faf50e0 6 |
8faf50e0
XL
7 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
2b03887a 9 = note: `#[warn(private_in_public)]` on by default
8faf50e0
XL
10
11error[E0446]: private type `m2::Priv` in public interface
0731742a 12 --> $DIR/issue-30079.rs:18:9
8faf50e0
XL
13 |
14LL | struct Priv;
064997fb 15 | ----------- `m2::Priv` declared as private
8faf50e0 16LL | impl ::std::ops::Deref for ::SemiPriv {
532ac7d7 17LL | type Target = Priv;
064997fb 18 | ^^^^^^^^^^^ can't leak private type
8faf50e0
XL
19
20error[E0446]: private type `m3::Priv` in public interface
0731742a 21 --> $DIR/issue-30079.rs:35:9
8faf50e0
XL
22 |
23LL | struct Priv;
064997fb 24 | ----------- `m3::Priv` declared as private
8faf50e0 25LL | impl ::SemiPrivTrait for () {
532ac7d7 26LL | type Assoc = Priv;
064997fb 27 | ^^^^^^^^^^ can't leak private type
8faf50e0 28
ba9703b0 29error: aborting due to 2 previous errors; 1 warning emitted
8faf50e0
XL
30
31For more information about this error, try `rustc --explain E0446`.