1 error[E0445]: private trait `Foo` in public interface
4 15 | pub trait Bar : Foo {}
5 | ^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
7 error[E0445]: private trait `Foo` in public interface
10 18 | pub struct Bar2<T: Foo>(pub T);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
13 error[E0445]: private trait `Foo` in public interface
14 --> $DIR/E0445.rs:21:1
16 21 | pub fn foo<T: Foo> (t: T) {}
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
19 error: aborting due to 3 previous errors