]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0445]: private trait `Private<<Self as Public>::P, <Self as Public>::R>` in public interface |
0731742a | 2 | --> $DIR/issue-18389.rs:7:1 |
8faf50e0 | 3 | | |
0731742a | 4 | LL | trait Private<P, R> { |
29967ef6 | 5 | | ------------------- `Private<<Self as Public>::P, <Self as Public>::R>` declared as private |
0731742a | 6 | ... |
8faf50e0 | 7 | LL | / pub trait Public: Private< |
532ac7d7 | 8 | LL | | |
8faf50e0 XL |
9 | LL | | <Self as Public>::P, |
10 | LL | | <Self as Public>::R | |
11 | ... | | |
12 | LL | | fn call_inner(&self); | |
13 | LL | | } | |
14 | | |_^ can't leak private trait | |
15 | ||
16 | error: aborting due to previous error | |
17 | ||
18 | For more information about this error, try `rustc --explain E0445`. |