mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-10 08:57:36 +00:00
18 lines
231 B
Rust
18 lines
231 B
Rust
trait A<C = <Self as D>::E> {}
|
|
|
|
trait D {
|
|
type E;
|
|
}
|
|
|
|
impl A<()> for () {}
|
|
impl D for () {
|
|
type E = ();
|
|
}
|
|
|
|
fn f() {
|
|
let B: &dyn A = &();
|
|
//~^ ERROR the type parameter `C` must be explicitly specified
|
|
}
|
|
|
|
fn main() {}
|