summaryrefslogtreecommitdiffstats
path: root/src/test/ui/privacy/where-pub-type-impls-priv-trait.stderr
blob: a433cebbbc090a2f3e6fde98da1cc6a8eff6d5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
error[E0445]: private trait `PrivTr` in public interface
  --> $DIR/where-pub-type-impls-priv-trait.rs:19:1
   |
LL | trait PrivTr {}
   | ------------ `PrivTr` declared as private
...
LL | pub struct S
   | ^^^^^^^^^^^^ can't leak private trait

error[E0445]: private trait `PrivTr` in public interface
  --> $DIR/where-pub-type-impls-priv-trait.rs:26:1
   |
LL | trait PrivTr {}
   | ------------ `PrivTr` declared as private
...
LL | pub enum E
   | ^^^^^^^^^^ can't leak private trait

error[E0445]: private trait `PrivTr` in public interface
  --> $DIR/where-pub-type-impls-priv-trait.rs:33:1
   |
LL |   trait PrivTr {}
   |   ------------ `PrivTr` declared as private
...
LL | / pub fn f()
LL | |
LL | | where
LL | |     PubTy: PrivTr
   | |_________________^ can't leak private trait

error[E0445]: private trait `PrivTr` in public interface
  --> $DIR/where-pub-type-impls-priv-trait.rs:40:1
   |
LL | trait PrivTr {}
   | ------------ `PrivTr` declared as private
...
LL | impl S
   | ^^^^^^ can't leak private trait

error[E0445]: private trait `PrivTr` in public interface
  --> $DIR/where-pub-type-impls-priv-trait.rs:45:5
   |
LL |   trait PrivTr {}
   |   ------------ `PrivTr` declared as private
...
LL | /     pub fn f()
LL | |
LL | |     where
LL | |         PubTy: PrivTr
   | |_____________________^ can't leak private trait

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0445`.