mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
20 lines
371 B
Rust
20 lines
371 B
Rust
//@ check-pass
|
|
|
|
use std::any::Any;
|
|
use std::any::TypeId;
|
|
|
|
trait Private<P, R> {
|
|
fn call(&self, p: P, r: R);
|
|
}
|
|
pub trait Public: Private<
|
|
//~^ WARNING trait `Private<<Self as Public>::P, <Self as Public>::R>` is more private than the item `Public`
|
|
<Self as Public>::P,
|
|
<Self as Public>::R
|
|
> {
|
|
type P;
|
|
type R;
|
|
|
|
fn call_inner(&self);
|
|
}
|
|
|
|
fn main() {}
|