1 error[E0445]: private trait `Foo` in public interface
4 LL | pub trait Bar : Foo {}
5 | ^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
7 error[E0445]: private trait `Foo` in public interface
10 LL | pub struct Bar2<T: Foo>(pub T);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
13 error[E0445]: private trait `Foo` in public interface
16 LL | pub fn foo<T: Foo> (t: T) {}
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0445`.