rust/tests/ui/methods/issues
Esteban Küber 89a3c19832 Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator
```
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`.
2024-03-03 18:53:36 +00:00
..
issue-61525.rs
issue-61525.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
issue-84495.rs
issue-84495.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-90315.rs
issue-90315.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-94581.fixed Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00
issue-94581.rs Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00
issue-94581.stderr Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00
issue-105732.rs
issue-105732.stderr Deduplicate some logic and reword output 2024-02-22 18:05:28 +00:00