]> git.proxmox.com Git - rustc.git/blob - src/test/ui/privacy/private-in-public-assoc-ty.min_tait.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / privacy / private-in-public-assoc-ty.min_tait.stderr
1 error[E0446]: private type `Priv` in public interface
2 --> $DIR/private-in-public-assoc-ty.rs:20:9
3 |
4 LL | struct Priv;
5 | ------------ `Priv` declared as private
6 ...
7 LL | type A = Priv;
8 | ^^^^^^^^^^^^^^ can't leak private type
9
10 warning: private trait `PrivTr` in public interface (error E0445)
11 --> $DIR/private-in-public-assoc-ty.rs:27:9
12 |
13 LL | type Alias1: PrivTr;
14 | ^^^^^^^^^^^^^^^^^^^^
15 |
16 = note: `#[warn(private_in_public)]` on by default
17 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
19
20 warning: private type `Priv` in public interface (error E0446)
21 --> $DIR/private-in-public-assoc-ty.rs:30:9
22 |
23 LL | type Alias2: PubTrAux1<Priv> = u8;
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 |
26 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
27 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
28
29 warning: private type `Priv` in public interface (error E0446)
30 --> $DIR/private-in-public-assoc-ty.rs:33:9
31 |
32 LL | type Alias3: PubTrAux2<A = Priv> = u8;
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 |
35 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
36 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
37
38 error[E0446]: private type `Priv` in public interface
39 --> $DIR/private-in-public-assoc-ty.rs:37:9
40 |
41 LL | struct Priv;
42 | ------------ `Priv` declared as private
43 ...
44 LL | type Alias4 = Priv;
45 | ^^^^^^^^^^^^^^^^^^^ can't leak private type
46
47 error[E0446]: private type `Priv` in public interface
48 --> $DIR/private-in-public-assoc-ty.rs:44:9
49 |
50 LL | struct Priv;
51 | ------------ `Priv` declared as private
52 ...
53 LL | type Alias1 = Priv;
54 | ^^^^^^^^^^^^^^^^^^^ can't leak private type
55
56 error[E0445]: private trait `PrivTr` in public interface
57 --> $DIR/private-in-public-assoc-ty.rs:47:9
58 |
59 LL | trait PrivTr {}
60 | ------------ `PrivTr` declared as private
61 ...
62 LL | type Exist = impl PrivTr;
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
64
65 error: aborting due to 4 previous errors; 3 warnings emitted
66
67 Some errors have detailed explanations: E0445, E0446.
68 For more information about an error, try `rustc --explain E0445`.