let_and_return suggestion causes errors macro_rule #4997
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
T-macros
Type: Issues with macros and macro expansion
Hi, the following code: https://play.rust-lang.org/?gist=0f26eb7594df37138a8ff964c50cc3ab
says the let binding is unnecessary but the suggestion causes the code to not compile with the following error:
error: attempted to repeat an expression containing no syntax variables matched as repeating at this depth
The text was updated successfully, but these errors were encountered: