]> git.lizzy.rs Git - rust.git/blob - tests/ui/iterators/vec-on-unimplemented.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / 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   --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
7    |
8    = note: doesn't satisfy `Vec<bool>: Iterator`
9    |
10    = note: the following trait bounds were not satisfied:
11            `Vec<bool>: Iterator`
12            which is required by `&mut Vec<bool>: Iterator`
13            `[bool]: Iterator`
14            which is required by `&mut [bool]: Iterator`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0599`.