2024-03-01 15:37:56 -06: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 06:09:08 -05:00
|
|
|
|
|
2024-03-01 15:37:56 -06:00
|
|
|
LL | let _ = vec![true, false].map(|v| !v).collect::<Vec<_>>();
|
|
|
|
| ^^^ `Vec<bool>` is not an iterator
|
2022-06-08 06:09:08 -05:00
|
|
|
|
|
2024-03-01 15:37:56 -06:00
|
|
|
help: call `.into_iter()` first
|
|
|
|
|
|
|
|
|
LL | let _ = vec![true, false].into_iter().map(|v| !v).collect::<Vec<_>>();
|
|
|
|
| ++++++++++++
|
2022-06-08 06:09:08 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-06-08 06:09:08 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|