fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: `std::string::String` is not an iterator 2 --> $DIR/string.rs:2:14 3 | 4LL | for _ in "".to_owned() {} 5 | ^^^^^^^^^^^^^ `std::string::String` is not an iterator; try calling `.chars()` or `.bytes()` 6 | 7 = help: the trait `std::iter::Iterator` is not implemented for `std::string::String` 8 = note: required by `std::iter::IntoIterator::into_iter` 9 10error[E0277]: `&str` is not an iterator 11 --> $DIR/string.rs:4:14 12 | 13LL | for _ in "" {} 14 | ^^ `&str` is not an iterator; try calling `.chars()` or `.bytes()` 15 | 16 = help: the trait `std::iter::Iterator` is not implemented for `&str` 17 = note: required by `std::iter::IntoIterator::into_iter` 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0277`.