]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / typeck / issue-57673-ice-on-deref-of-boxed-trait.stderr
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    |                                       - help: try adding a return type: `-> (dyn Iterator<Item = ()> + 'static)`
6 LL |     *x
7    |     ^^ expected `()`, found trait object `dyn Iterator`
8    |
9    = note: expected unit type `()`
10            found trait object `(dyn Iterator<Item = ()> + 'static)`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.