mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +00:00
21 lines
370 B
Rust
21 lines
370 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() {}
|