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