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