]> git.proxmox.com Git - rustc.git/blame - src/test/ui/for/for-c-in-str.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / for / for-c-in-str.stderr
CommitLineData
0bf4aa26 1error[E0277]: `&str` is not an iterator
0731742a 2 --> $DIR/for-c-in-str.rs:4:14
2c00a5a8 3 |
0531ce1d 4LL | for c in "asdf" {
2c00a5a8
XL
5 | ^^^^^^ `&str` is not an iterator; try calling `.chars()` or `.bytes()`
6 |
1b1a35ee 7 = help: the trait `Iterator` is not implemented for `&str`
29967ef6 8 = note: required because of the requirements on the impl of `IntoIterator` for `&str`
136023e0
XL
9note: required by `into_iter`
10 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
11 |
12LL | fn into_iter(self) -> Self::IntoIter;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2c00a5a8
XL
14
15error: aborting due to previous error
16
0531ce1d 17For more information about this error, try `rustc --explain E0277`.