rust/tests/ui/issues/issue-18389.rs
2024-02-16 20:02:50 +00:00

21 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() {}