2018-01-23 16:58:39 -06:00
|
|
|
error[E0277]: the trait bound `&str: std::iter::Iterator` is not satisfied
|
2018-01-25 16:07:45 -06:00
|
|
|
--> $DIR/for-c-in-str.rs:14: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
|
|
|
|
|
|
|
|
= help: the trait `std::iter::Iterator` is not implemented for `&str`
|
|
|
|
= note: required by `std::iter::IntoIterator::into_iter`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0277"
|