pub trait Trait {
type Assoc;
}
struct Foo;
impl Trait for Foo {
type Assoc = String;
}
fn foo() -> Foo::Assoc {
Foo::Assoc::from("abc")
but the compiler tells me "use fully-qualified syntax: <Foo as Trait>::Assoc". What am I missing? Surely we don't have to use fully-qualified syntax every time we refer to an associated type?
Oh damn. Sad, it appears that both this issue and the long-standing "inherent associated types" (the lack of which I was trying to solved with the snippet above) are blocked by more or less the same thing x)