fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0445]: private trait `Foo` in public interface 2 --> $DIR/E0445.rs:5:1 3 | 4LL | pub trait Bar : Foo {} 5 | ^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait 6 7error[E0445]: private trait `Foo` in public interface 8 --> $DIR/E0445.rs:7:1 9 | 10LL | pub struct Bar2<T: Foo>(pub T); 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait 12 13error[E0445]: private trait `Foo` in public interface 14 --> $DIR/E0445.rs:9:1 15 | 16LL | pub fn foo<T: Foo> (t: T) {} 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait 18 19error: aborting due to 3 previous errors 20 21For more information about this error, try `rustc --explain E0445`.