2018-07-15 16:11:54 -05:00
|
|
|
error[E0445]: private trait `Private<<Self as Public>::P, <Self as Public>::R>` in public interface
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-18389.rs:7:1
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2018-12-16 07:18:45 -06:00
|
|
|
LL | trait Private<P, R> {
|
2020-10-16 18:28:11 -05:00
|
|
|
| ------------------- `Private<<Self as Public>::P, <Self as Public>::R>` declared as private
|
2018-12-16 07:18:45 -06:00
|
|
|
...
|
2018-07-15 16:11:54 -05:00
|
|
|
LL | / pub trait Public: Private<
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2018-07-15 16:11:54 -05:00
|
|
|
LL | | <Self as Public>::P,
|
|
|
|
LL | | <Self as Public>::R
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | | > {
|
2018-07-15 16:11:54 -05:00
|
|
|
| |_^ can't leak private trait
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0445`.
|