error[E0445]: private trait `Private<::P, ::R>` in public interface --> $DIR/issue-18389.rs:13: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 warning: trait `Private<::P, ::R>` is more private than the item `Public` | note: trait `Public` is reachable at visibility `pub` --> $DIR/issue-18389.rs:13:1 | LL | / pub trait Public: Private< LL | | LL | | ::P, LL | | ::R LL | | > { | |_^ note: but trait `Private<::P, ::R>` is only usable at visibility `pub(crate)` --> $DIR/issue-18389.rs:10:1 | LL | trait Private { | ^^^^^^^^^^^^^^^^^^^ note: the lint level is defined here --> $DIR/issue-18389.rs:1:9 | LL | #![warn(private_bounds)] | ^^^^^^^^^^^^^^ error: aborting due to previous error; 1 warning emitted For more information about this error, try `rustc --explain E0445`.