]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for/for-c-in-str.stderr
Rollup merge of #99784 - est31:deny_cfg_attr_crate_type_name, r=Mark-Simulacrum
[rust.git] / src / test / ui / for / for-c-in-str.stderr
1 error[E0277]: `&str` is not an iterator
2   --> $DIR/for-c-in-str.rs:4:14
3    |
4 LL |     for c in "asdf" {
5    |              ^^^^^^ `&str` is not an iterator; try calling `.chars()` or `.bytes()`
6    |
7    = help: the trait `Iterator` is not implemented for `&str`
8    = note: required for `&str` to implement `IntoIterator`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.