]>
Commit | Line | Data |
---|---|---|
29967ef6 | 1 | error[E0271]: type mismatch resolving `<Bar as Iterator>::Item == Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>` |
136023e0 | 2 | --> $DIR/issue-70877.rs:10:12 |
29967ef6 XL |
3 | | |
4 | LL | type FooRet = impl std::fmt::Debug; | |
cdc7bbd5 | 5 | | -------------------- the found opaque type |
29967ef6 XL |
6 | ... |
7 | LL | type Foo = impl Iterator<Item = FooItem>; | |
cdc7bbd5 | 8 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found opaque type |
29967ef6 | 9 | | |
cdc7bbd5 XL |
10 | = note: expected struct `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>` |
11 | found struct `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> impl Debug + 'static)>` | |
29967ef6 XL |
12 | |
13 | error: aborting due to previous error | |
14 | ||
15 | For more information about this error, try `rustc --explain E0271`. |