mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
19 lines
342 B
Rust
19 lines
342 B
Rust
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() {}
|