]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for-c-in-str.stderr
Implement existential types
[rust.git] / src / test / ui / for-c-in-str.stderr
1 error[E0277]: the trait bound `&str: std::iter::Iterator` is not satisfied
2   --> $DIR/for-c-in-str.rs:14:14
3    |
4 LL |     for c in "asdf" {
5    |              ^^^^^^ `&str` is not an iterator; try calling `.chars()` or `.bytes()`
6    |
7    = help: the trait `std::iter::Iterator` is not implemented for `&str`
8    = note: required by `std::iter::IntoIterator::into_iter`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.