rust/tests/ui/typeck/issue-57673-ice-on-deref-of...

8 lines
183 B
Rust

//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() {}