Inspect does not feed properly into map #81685
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inference
Area: Type inference
A-type-system
Area: Type system
C-bug
Category: This is a bug.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
I tried this code:
I expected to see this happen: For the code to compile, and for the inspect to not break the iterator like it does. It works when I write it like this:
Instead, this happened: It gives me a compiler error:
Meta
rustc --version --verbose
:Signature of `validate_filename`
``` pub fn validate_filename
(filename: S) where S: AsRef + Display, { ... } ```The text was updated successfully, but these errors were encountered: