mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
15 lines
553 B
Rust
15 lines
553 B
Rust
// E0277 should point exclusively at line 6, not the entire for loop span
|
|
|
|
fn main() {
|
|
for c in "asdf" {
|
|
//~^ ERROR `&str` is not an iterator
|
|
//~| NOTE `&str` is not an iterator
|
|
//~| HELP the trait `Iterator` is not implemented for `&str`
|
|
//~| NOTE required for `&str` to implement `IntoIterator`
|
|
//~| NOTE in this expansion of desugaring of `for` loop
|
|
//~| NOTE in this expansion of desugaring of `for` loop
|
|
//~| NOTE in this expansion of desugaring of `for` loop
|
|
println!();
|
|
}
|
|
}
|