]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/issue-57673-ice-on-deref-of-boxed-trait.rs:5:5 | |
3 | | | |
4 | LL | fn ice(x: Box<dyn Iterator<Item=()>>) { | |
5 | | - possibly return type missing here? | |
532ac7d7 | 6 | LL | *x |
60c5eb7d | 7 | | ^^ expected `()`, found trait `std::iter::Iterator` |
0731742a | 8 | | |
60c5eb7d XL |
9 | = note: expected unit type `()` |
10 | found trait object `(dyn std::iter::Iterator<Item = ()> + 'static)` | |
0731742a XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0308`. |