Iterate over arrays dirrectly, instead of going through a slice

This commit is contained in:
Maybe Waffle 2023-01-14 12:50:13 +00:00
parent 32be158630
commit bd04416aaa
4 changed files with 5 additions and 5 deletions

View file

@ -869,7 +869,7 @@ impl Test for T {{
};
// Enumerate some possible next siblings.
for next_sibling in &[
for next_sibling in [
"",
"fn other_fn() {}", // `const $0 fn` -> `const fn`
"type OtherType = i32;",