rust/tests/ui/for/for-c-in-str.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
427 B
Plaintext
Raw Normal View History

error[E0277]: `&str` is not an iterator
2020-09-07 09:01:45 +00:00
--> $DIR/for-c-in-str.rs:4:14
|
2018-02-23 00:42:32 +00:00
LL | for c in "asdf" {
2018-02-01 22:16:53 +00:00
| ^^^^^^ `&str` is not an iterator; try calling `.chars()` or `.bytes()`
|
= help: the trait `Iterator` is not implemented for `&str`
= note: required for `&str` to implement `IntoIterator`
error: aborting due to previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0277`.