todo!()
, unimplemented!()
, panic!()
, … don't play well with impl Trait
#74363
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
I tried this code:
I expected to see this happen: the code should compile (and fails at runtime).
Instead, this happened:
Note: The issue exists for similar macros:
unimplemented
,panic
, and most probably others that I'm not aware of.I'm using the following workaround (which obviously works only for iterators, but can be adapted for any kind of object being iterated on):
Note: I'm relatively sure that this issue is known (given how easy it is to reproduce it), but I didn't found it in the bug tracker.
The text was updated successfully, but these errors were encountered: