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