// check-pass use std::any::Any; use std::any::TypeId; trait Private { fn call(&self, p: P, r: R); } pub trait Public: Private< //~^ WARNING trait `Private<::P, ::R>` is more private than the item `Public` ::P, ::R > { type P; type R; fn call_inner(&self); } fn main() {}