blob: 4c1fc1a0fa612a2111caddd376c331e55e443d17 [file] [log] [blame]
trait Foo {
type Bar;
fn foo(self) -> Self::Bar;
}
impl Foo for Box<dyn Foo> {
//~^ ERROR: the value of the associated type `Bar` in `Foo` must be specified
type Bar = <Self as Foo>::Bar;
fn foo(self) -> <Self as Foo>::Bar {
(*self).foo()
}
}
fn main() {}