error[E0445]: private trait `Private<::P, ::R>` in public interface --> $DIR/issue-18389.rs:7:1 | LL | trait Private { | ------------------- `Private<::P, ::R>` declared as private ... LL | / pub trait Public: Private< LL | | LL | | ::P, LL | | ::R LL | | > { | |_^ can't leak private trait error: aborting due to previous error For more information about this error, try `rustc --explain E0445`.