mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
89a3c19832
``` error[E0599]: no method named `map` found for struct `Vec<bool>` in the current scope --> $DIR/vec-on-unimplemented.rs:3:23 | LL | vec![true, false].map(|v| !v).collect::<Vec<_>>(); | ^^^ `Vec<bool>` is not an iterator | help: call `.into_iter()` first | LL | vec![true, false].into_iter().map(|v| !v).collect::<Vec<_>>(); | ++++++++++++ ``` We used to provide some help through `rustc_on_unimplemented` on non-`impl Trait` and non-type-params, but this lets us get rid of some otherwise unnecessary conditions in the annotation on `Iterator`. |
||
---|---|---|
.. | ||
issue-61525.rs | ||
issue-61525.stderr | ||
issue-84495.rs | ||
issue-84495.stderr | ||
issue-90315.rs | ||
issue-90315.stderr | ||
issue-94581.fixed | ||
issue-94581.rs | ||
issue-94581.stderr | ||
issue-105732.rs | ||
issue-105732.stderr |