]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | warning: private type `m1::Priv` in public interface (error E0446) |
0731742a | 2 | --> $DIR/issue-30079.rs:6:9 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | 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 | |
11 | error[E0446]: private type `m2::Priv` in public interface | |
0731742a | 12 | --> $DIR/issue-30079.rs:18:9 |
8faf50e0 XL |
13 | | |
14 | LL | struct Priv; | |
064997fb | 15 | | ----------- `m2::Priv` declared as private |
8faf50e0 | 16 | LL | impl ::std::ops::Deref for ::SemiPriv { |
532ac7d7 | 17 | LL | type Target = Priv; |
064997fb | 18 | | ^^^^^^^^^^^ can't leak private type |
8faf50e0 XL |
19 | |
20 | error[E0446]: private type `m3::Priv` in public interface | |
0731742a | 21 | --> $DIR/issue-30079.rs:35:9 |
8faf50e0 XL |
22 | | |
23 | LL | struct Priv; | |
064997fb | 24 | | ----------- `m3::Priv` declared as private |
8faf50e0 | 25 | LL | impl ::SemiPrivTrait for () { |
532ac7d7 | 26 | LL | type Assoc = Priv; |
064997fb | 27 | | ^^^^^^^^^^ can't leak private type |
8faf50e0 | 28 | |
ba9703b0 | 29 | error: aborting due to 2 previous errors; 1 warning emitted |
8faf50e0 XL |
30 | |
31 | For more information about this error, try `rustc --explain E0446`. |