2022-02-11 07:18:06 +00:00
|
|
|
error[E0271]: type mismatch resolving `<Bar as Iterator>::Item == Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>`
|
|
|
|
|
--> $DIR/issue-70877.rs:7:12
|
2022-02-01 17:28:46 +00:00
|
|
|
|
|
2022-02-11 07:18:06 +00:00
|
|
|
LL | type FooRet = impl std::fmt::Debug;
|
|
|
|
|
| -------------------- the found opaque type
|
|
|
|
|
...
|
|
|
|
|
LL | type Foo = impl Iterator<Item = FooItem>;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch resolving `<Bar as Iterator>::Item == Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>`
|
2022-02-01 17:28:46 +00:00
|
|
|
|
|
2022-02-11 07:18:06 +00:00
|
|
|
note: expected this to be `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>`
|
|
|
|
|
--> $DIR/issue-70877.rs:13:17
|
2022-02-01 17:28:46 +00:00
|
|
|
|
|
2022-02-11 07:18:06 +00:00
|
|
|
LL | type Item = FooItem;
|
|
|
|
|
| ^^^^^^^
|
|
|
|
|
= note: expected struct `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>`
|
|
|
|
|
found struct `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> impl Debug + 'static)>`
|
2022-02-01 17:28:46 +00:00
|
|
|
|
2022-02-11 07:14:58 +00:00
|
|
|
error: aborting due to previous error
|
2022-02-01 17:28:46 +00:00
|
|
|
|
2022-02-11 07:18:06 +00:00
|
|
|
For more information about this error, try `rustc --explain E0271`.
|