]> git.proxmox.com Git - rustc.git/blame - src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / typeck / issue-57673-ice-on-deref-of-boxed-trait.stderr
CommitLineData
0731742a
XL
1error[E0308]: mismatched types
2 --> $DIR/issue-57673-ice-on-deref-of-boxed-trait.rs:5:5
3 |
4LL | fn ice(x: Box<dyn Iterator<Item=()>>) {
5 | - possibly return type missing here?
532ac7d7 6LL | *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
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0308`.