summaryrefslogtreecommitdiffstats
path: root/tests/ui/iterators/string.rs
blob: ad58a463e9b05550ca4b4f102b8467db9b993a37 (plain)
1
2
3
4
5
6
fn main() {
    for _ in "".to_owned() {}
    //~^ ERROR `String` is not an iterator
    for _ in "" {}
    //~^ ERROR `&str` is not an iterator
}