1 2 3 4 5 6 7
//extern crate has_assoc_type; //fn ice(x: Box<dyn has_assoc_type::Foo<Assoc=()>>) { fn ice(x: Box<dyn Iterator<Item=()>>) { *x //~ ERROR mismatched types [E0308] } fn main() {}