dd557c988f
Separate `RemoveLet` span into primary span for `let` and removal suggestion span for `let `, so that primary span does not include whitespace. Fixes: #133031 Signed-off-by: Tyrone Wu <wudevelops@gmail.com>
13 lines
255 B
Rust
13 lines
255 B
Rust
//@ run-rustfix
|
|
|
|
fn main() {
|
|
for let _x of [1, 2, 3] {}
|
|
//~^ ERROR expected pattern, found `let`
|
|
//~| ERROR missing `in` in `for` loop
|
|
|
|
match 1 {
|
|
let 1 => {}
|
|
//~^ ERROR expected pattern, found `let`
|
|
_ => {}
|
|
}
|
|
}
|