blob: 203d512e39812e6e671e7de48e3e6b1f80455b84 [file] [log] [blame] [edit]
trait Identity {
type Identity;
}
impl<T> Identity for T {
type Identity = T;
}
trait Trait {
type Assoc: Identity;
fn tokenize(&self) -> <Self::Assoc as Identity>::Identity;
}
impl Trait for () {
type Assoc = DoesNotExist;
//~^ ERROR cannot find type `DoesNotExist` in this scope
fn tokenize(&self) -> <Self::Assoc as Identity>::Identity {
unimplemented!()
}
}
fn main() {}