]> git.proxmox.com Git - rustc.git/blob - src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / 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 | - possibly return type missing here?
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`.