1 error[E0308]: mismatched types
2 --> $DIR/issue-57673-ice-on-deref-of-boxed-trait.rs:5:5
4 LL | fn ice(x: Box<dyn Iterator<Item=()>>) {
5 | - help: try adding a return type: `-> (dyn Iterator<Item = ()> + 'static)`
7 | ^^ expected `()`, found trait object `dyn Iterator`
9 = note: expected unit type `()`
10 found trait object `(dyn Iterator<Item = ()> + 'static)`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.