2023-06-19 09:06:00 -05:00
|
|
|
// check-pass
|
2023-05-18 06:57:45 -05:00
|
|
|
|
2014-12-07 09:22:06 -06:00
|
|
|
use std::any::Any;
|
2015-01-14 18:08:07 -06:00
|
|
|
use std::any::TypeId;
|
2014-12-07 09:22:06 -06:00
|
|
|
|
2015-08-07 12:23:11 -05:00
|
|
|
trait Private<P, R> {
|
2014-12-07 09:22:06 -06:00
|
|
|
fn call(&self, p: P, r: R);
|
|
|
|
}
|
2016-11-12 04:24:17 -06:00
|
|
|
pub trait Public: Private<
|
2023-06-19 09:06:00 -05:00
|
|
|
//~^ WARNING trait `Private<<Self as Public>::P, <Self as Public>::R>` is more private than the item `Public`
|
2014-12-07 09:22:06 -06:00
|
|
|
<Self as Public>::P,
|
|
|
|
<Self as Public>::R
|
|
|
|
> {
|
|
|
|
type P;
|
|
|
|
type R;
|
|
|
|
|
|
|
|
fn call_inner(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|