blob: 86a1c1a34e93036fc5213e83faf3c3de4c1239ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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 because of the requirements on the impl of `IntoIterator` for `&str`
//~| 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!();
}
}
|