aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/private_in_public-enum.stderr
blob: 6e3316c58958d241b6deabe0f74171777c8f1fc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0446]: private type `PrivateEnum` in public interface
 --> $DIR/private_in_public-enum.rs:6:7
  |
6 |     V(PrivateEnum), //~ ERROR E0446
  |       ^^^^^^^^^^^ can't leak private type
...
9 | enum PrivateEnum {
  | ---------------- `PrivateEnum` declared as private

error[E0446]: private type `foo::PrivateEnum` in public interface
  --> $DIR/private_in_public-enum.rs:15:11
   |
15 |         V(PrivateEnum), //~ ERROR E0446
   |           ^^^^^^^^^^^ can't leak private type
...
18 |     enum PrivateEnum {
   |     ---------------- `foo::PrivateEnum` declared as private