]> git.lizzy.rs Git - rust.git/blob - tests/ui/iterators/string.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / 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 }