2020-06-29 21:15:11 +00:00
|
|
|
// E0277 should point exclusively at line 6, not the entire for loop span
|
|
|
|
|
2018-01-23 22:58:39 +00:00
|
|
|
fn main() {
|
|
|
|
for c in "asdf" {
|
2020-06-29 21:15:11 +00:00
|
|
|
//~^ ERROR `&str` is not an iterator
|
|
|
|
//~| NOTE `&str` is not an iterator
|
|
|
|
//~| HELP the trait `Iterator` is not implemented for `&str`
|
2022-08-15 20:31:37 +00:00
|
|
|
//~| NOTE required for `&str` to implement `IntoIterator`
|
2020-06-29 21:15:11 +00:00
|
|
|
//~| NOTE in this expansion of desugaring of `for` loop
|
|
|
|
//~| NOTE in this expansion of desugaring of `for` loop
|
2020-09-07 09:01:45 +00:00
|
|
|
//~| NOTE in this expansion of desugaring of `for` loop
|
2019-09-13 09:36:35 +00:00
|
|
|
println!();
|
2018-01-23 22:58:39 +00:00
|
|
|
}
|
|
|
|
}
|