blob: 654dfb63b88be80b837528368987bddaccc0194c [file] [log] [blame]
use std::any::Any;
use std::any::TypeId;
trait Private<P, R> {
fn call(&self, p: P, r: R);
}
pub trait Public: Private<
//~^ ERROR private trait `Private<<Self as Public>::P, <Self as Public>::R>` in public interface
<Self as Public>::P,
<Self as Public>::R
> {
type P;
type R;
fn call_inner(&self);
}
fn main() {}