2024-03-01 21:37:56 +00:00
|
|
|
error[E0599]: no method named `map` found for struct `Vec<bool>` in the current scope
|
|
|
|
--> $DIR/vec-on-unimplemented.rs:3:31
|
2022-06-08 11:09:08 +00:00
|
|
|
|
|
2024-03-01 21:37:56 +00:00
|
|
|
LL | let _ = vec![true, false].map(|v| !v).collect::<Vec<_>>();
|
|
|
|
| ^^^ `Vec<bool>` is not an iterator
|
2022-06-08 11:09:08 +00:00
|
|
|
|
|
2024-03-01 21:37:56 +00:00
|
|
|
help: call `.into_iter()` first
|
|
|
|
|
|
|
|
|
LL | let _ = vec![true, false].into_iter().map(|v| !v).collect::<Vec<_>>();
|
|
|
|
| ++++++++++++
|
2022-06-08 11:09:08 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-06-08 11:09:08 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|