]> git.lizzy.rs Git - rust.git/blob - src/test/ui/iterators/string.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / iterators / string.rs
1 fn main() {
2     for _ in "".to_owned() {}
3     //~^ ERROR `String` is not an iterator
4     for _ in "" {}
5     //~^ ERROR `&str` is not an iterator
6 }