]>
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 XL |
7 | = help: the trait `Iterator` is not implemented for `&str` |
8 | = note: required by `into_iter` | |
2c00a5a8 XL |
9 | |
10 | error: aborting due to previous error | |
11 | ||
0531ce1d | 12 | For more information about this error, try `rustc --explain E0277`. |