]> git.proxmox.com Git - rustc.git/blame - src/test/ui/iterators/string.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / iterators / string.stderr
CommitLineData
1b1a35ee 1error[E0277]: `String` is not an iterator
0bf4aa26
XL
2 --> $DIR/string.rs:2:14
3 |
4LL | for _ in "".to_owned() {}
1b1a35ee 5 | ^^^^^^^^^^^^^ `String` is not an iterator
0bf4aa26 6 |
1b1a35ee
XL
7 = help: the trait `Iterator` is not implemented for `String`
8 = note: required by `into_iter`
0bf4aa26
XL
9
10error[E0277]: `&str` is not an iterator
11 --> $DIR/string.rs:4:14
12 |
13LL | for _ in "" {}
14 | ^^ `&str` is not an iterator; try calling `.chars()` or `.bytes()`
15 |
1b1a35ee
XL
16 = help: the trait `Iterator` is not implemented for `&str`
17 = note: required by `into_iter`
0bf4aa26
XL
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0277`.