1 error[E0445]: private trait `Private<<Self as Public>::P, <Self as Public>::R>` in public interface
2 --> $DIR/issue-18389.rs:7:1
4 LL | trait Private<P, R> {
5 | ------------------- `Private<<Self as Public>::P, <Self as Public>::R>` declared as private
7 LL | / pub trait Public: Private<
9 LL | | <Self as Public>::P,
10 LL | | <Self as Public>::R
12 LL | | fn call_inner(&self);
14 | |_^ can't leak private trait
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0445`.