]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/where-priv-type.stderr
Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup
[rust.git] / src / test / ui / privacy / where-priv-type.stderr
1 warning: private type `PrivTy` in public interface (error E0446)
2   --> $DIR/where-priv-type.rs:19:1
3    |
4 LL | / pub struct S
5 LL | |
6 LL | |
7 LL | | where
8 LL | |     PrivTy:
9 LL | | {}
10    | |__^
11    |
12    = note: `#[warn(private_in_public)]` on by default
13    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
15
16 warning: private type `PrivTy` in public interface (error E0446)
17   --> $DIR/where-priv-type.rs:27:1
18    |
19 LL | / pub enum E
20 LL | |
21 LL | |
22 LL | | where
23 LL | |     PrivTy:
24 LL | | {}
25    | |__^
26    |
27    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
28    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
29
30 warning: private type `PrivTy` in public interface (error E0446)
31   --> $DIR/where-priv-type.rs:35:1
32    |
33 LL | / pub fn f()
34 LL | |
35 LL | |
36 LL | | where
37 LL | |     PrivTy:
38    | |___________^
39    |
40    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
41    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
42
43 error[E0446]: private type `PrivTy` in public interface
44   --> $DIR/where-priv-type.rs:43:1
45    |
46 LL |   struct PrivTy;
47    |   -------------- `PrivTy` declared as private
48 ...
49 LL | / impl S
50 LL | |
51 LL | | where
52 LL | |     PrivTy:
53 ...  |
54 LL | |     {}
55 LL | | }
56    | |_^ can't leak private type
57
58 warning: private type `PrivTy` in public interface (error E0446)
59   --> $DIR/where-priv-type.rs:48:5
60    |
61 LL | /     pub fn f()
62 LL | |
63 LL | |
64 LL | |     where
65 LL | |         PrivTy:
66    | |_______________^
67    |
68    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
69    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
70
71 error[E0446]: private type `fn(u8) -> u8 {my_const_fn}` in public interface
72   --> $DIR/where-priv-type.rs:80:5
73    |
74 LL |     type AssocTy = Const<{ my_const_fn(U) }>;
75    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
76 ...
77 LL | const fn my_const_fn(val: u8) -> u8 {
78    | ----------------------------------- `fn(u8) -> u8 {my_const_fn}` declared as private
79
80 error: aborting due to 2 previous errors; 4 warnings emitted
81
82 For more information about this error, try `rustc --explain E0446`.