6 lines
160 B
Rust
6 lines
160 B
Rust
fn main() {
|
|
for _ in "".to_owned() {}
|
|
//~^ ERROR `std::string::String` is not an iterator
|
|
for _ in "" {}
|
|
//~^ ERROR `&str` is not an iterator
|
|
}
|