2020-06-29 22:15:11 +01:00
|
|
|
// E0277 should point exclusively at line 6, not the entire for loop span
|
|
|
|
|
2018-01-23 14:58:39 -08:00
|
|
|
fn main() {
|
|
|
|
for c in "asdf" {
|
2020-06-29 22:15:11 +01: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 21:31:37 +01:00
|
|
|
//~| NOTE required for `&str` to implement `IntoIterator`
|
2020-06-29 22:15:11 +01:00
|
|
|
//~| NOTE in this expansion of desugaring of `for` loop
|
|
|
|
//~| NOTE in this expansion of desugaring of `for` loop
|
2020-09-07 10:01:45 +01:00
|
|
|
//~| NOTE in this expansion of desugaring of `for` loop
|
2019-09-13 17:36:35 +08:00
|
|
|
println!();
|
2018-01-23 14:58:39 -08:00
|
|
|
}
|
|
|
|
}
|