]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/retslot-cast.stderr
Rollup merge of #100006 - jyn514:update-copy, r=dtolnay
[rust.git] / src / test / ui / coercion / retslot-cast.stderr
1 error[E0308]: mismatched types
2   --> $DIR/retslot-cast.rs:13:5
3    |
4 LL |             -> Option<&Iterator<Item=()>> {
5    |                -------------------------- expected `Option<&dyn Iterator<Item = ()>>` because of return type
6 ...
7 LL |     inner(x)
8    |     ^^^^^^^^ expected trait `Iterator<Item = ()>`, found trait `Iterator<Item = ()> + Send`
9    |
10    = note: expected enum `Option<&dyn Iterator<Item = ()>>`
11               found enum `Option<&dyn Iterator<Item = ()> + Send>`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0308`.