]>
Commit | Line | Data |
---|---|---|
0bf4aa26 | 1 | error[E0277]: `&str` is not an iterator |
0731742a | 2 | --> $DIR/for-c-in-str.rs:4:14 |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | for c in "asdf" { |
2c00a5a8 XL |
5 | | ^^^^^^ `&str` is not an iterator; try calling `.chars()` or `.bytes()` |
6 | | | |
1b1a35ee | 7 | = help: the trait `Iterator` is not implemented for `&str` |
29967ef6 | 8 | = note: required because of the requirements on the impl of `IntoIterator` for `&str` |
136023e0 XL |
9 | note: required by `into_iter` |
10 | --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL | |
11 | | | |
12 | LL | fn into_iter(self) -> Self::IntoIter; | |
13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
2c00a5a8 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
0531ce1d | 17 | For more information about this error, try `rustc --explain E0277`. |