summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-18389.rs
blob: 654dfb63b88be80b837528368987bddaccc0194c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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() {}