blob: 2101cb61a94d1fbfccce160d7f6dc979d61a78fc [file] [log] [blame]
pub trait Array {
type Element;
}
pub trait Visit {
fn visit() {}
}
impl Array for () {
type Element = ();
}
impl<'a> Visit for () where
(): Array<Element=&'a ()>,
{}
fn main() {
<() as Visit>::visit(); //~ ERROR: type mismatch resolving
}