2018-02-07 21:35:35 -06:00
|
|
|
error[E0445]: private trait `Foo` in public interface
|
|
|
|
--> $DIR/E0445.rs:15:1
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub trait Bar : Foo {}
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
|
|
|
|
|
|
|
|
error[E0445]: private trait `Foo` in public interface
|
|
|
|
--> $DIR/E0445.rs:18:1
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub struct Bar2<T: Foo>(pub T);
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
|
|
|
|
|
|
|
|
error[E0445]: private trait `Foo` in public interface
|
|
|
|
--> $DIR/E0445.rs:21:1
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub fn foo<T: Foo> (t: T) {}
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0445"
|