]> git.lizzy.rs Git - rust.git/blob - src/test/ui/iterators/vec-on-unimplemented.stderr
Auto merge of #100845 - timvermeulen:iter_compare, r=scottmcm
[rust.git] / src / test / ui / iterators / vec-on-unimplemented.stderr
1 error[E0599]: `Vec<bool>` is not an iterator
2   --> $DIR/vec-on-unimplemented.rs:2:23
3    |
4 LL |     vec![true, false].map(|v| !v).collect::<Vec<_>>();
5    |                       ^^^ `Vec<bool>` is not an iterator; try calling `.into_iter()` or `.iter()`
6    |
7   ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
8    |
9 LL | pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
10    | ------------------------------------------------------------------------------------------------ doesn't satisfy `Vec<bool>: Iterator`
11    |
12    = note: the following trait bounds were not satisfied:
13            `Vec<bool>: Iterator`
14            which is required by `&mut Vec<bool>: Iterator`
15            `[bool]: Iterator`
16            which is required by `&mut [bool]: Iterator`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0599`.