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