rust/src/test/ui/issues/issue-18389.stderr

16 lines
528 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0445]: private trait `Private<<Self as Public>::P, <Self as Public>::R>` in public interface
--> $DIR/issue-18389.rs:17:1
|
LL | / pub trait Public: Private<
LL | | //~^ ERROR private trait `Private<<Self as Public>::P, <Self as Public>::R>` in public interface
LL | | <Self as Public>::P,
LL | | <Self as Public>::R
... |
LL | | fn call_inner(&self);
LL | | }
| |_^ can't leak private trait
error: aborting due to previous error
For more information about this error, try `rustc --explain E0445`.