]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.rs
Rollup merge of #107355 - JohnTitor:issue-60755, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-57673-ice-on-deref-of-boxed-trait.rs
1 //extern crate has_assoc_type;
2
3 //fn ice(x: Box<dyn has_assoc_type::Foo<Assoc=()>>) {
4 fn ice(x: Box<dyn Iterator<Item=()>>) {
5     *x //~ ERROR mismatched types [E0308]
6 }
7 fn main() {}