2018-10-09 20:53:53 -05:00
|
|
|
error[E0277]: `&str` is not an iterator
|
2020-09-07 04:01:45 -05:00
|
|
|
--> $DIR/for-c-in-str.rs:4:14
|
2018-01-23 16:58:39 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | for c in "asdf" {
|
2018-02-01 16:16:53 -06:00
|
|
|
| ^^^^^^ `&str` is not an iterator; try calling `.chars()` or `.bytes()`
|
2018-01-23 16:58:39 -06:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Iterator` is not implemented for `&str`
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `&str` to implement `IntoIterator`
|
2018-01-23 16:58:39 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2018-01-23 16:58:39 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|