surprising error observing a fallible using closure - #283
Conversation
Hey, we do expect this to fail because closures can only observe `Infallible` observables. But the specific type error that we get seems unrelated to that. We couldn't even find where it is coming from. Help?
2ec701e to
1e312e5
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #283 +/- ##
==========================================
- Coverage 82.47% 1.76% -80.72%
==========================================
Files 84 83 -1
Lines 11887 11471 -416
==========================================
- Hits 9804 202 -9602
- Misses 2083 11269 +9186 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Sorry for the very late reply, and thanks for reporting this. The failure itself is expected, but the
While proving that bound, rustc picked our generic forwarding implementation for #285 fixes this without removing or narrowing the forwarding implementation:
The updated diagnostic now points directly to the real mismatch: For a fallible source, the intended next-only usage is: This now reports the actual |
|
Thanks! |
Hey, we do expect this to fail because closures
can only observe
Infallibleobservables. But thespecific type error that we get seems unrelated
to that. We couldn't even find where it is coming
from.
Help?
@shivaraj-bh