You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transformed code produced by rustfmt fails to compile.
error: unexpected token: `...` --> src/main.rs:10:8 |10 | || ...method(); | ^^^ |help: use `..` for an exclusive range |10 | || ..method(); | ^^help: or `..=` for an inclusive range |10 | || ..=method(); | ^^^error[E0425]: cannot find function `method` in this scope --> src/main.rs:10:11 |10 | || ...method(); | ^^^^^^ not found in this scope
Describe the bug
Working input code:
Rustfmt diff as of current master (292c0cc):
The transformed code produced by rustfmt fails to compile.
To Reproduce
Run rustfmt on playground or locally. Try to compile code. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f76a649e0bd1b99cbebc46c711ca9bf5
Expected behavior
I would expect compilable output, either unchanged
|| .. .method()
or parenthesized(|| ..).method()
.Meta
rustfmt src.rs
The text was updated successfully, but these errors were encountered: