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
paren-pat.rs:3:20: 3:21 error: expected `,` but found `)`
paren-pat.rs:3 let &(mut _error) = &1;
^
This is a very minor papercut for when one wish to clarify exactly what a pattern is doing; the example above is the main situation in which I've wanted parens, making it clear that it's a & pattern + a mutable ident binding, rather than a (hypothetical) &mut pattern.
The text was updated successfully, but these errors were encountered:
I don’t really understand how this was closed as a dupe rather than #19580. How can this be a dupe of a more recent and less general issue? And in any case, I think that this issue is probably RFC-like enough to belong in the RFCs repo.
…ogiq
Rewrite [`tuple_array_conversions`]
Fixesrust-lang#11100Fixesrust-lang#11144Fixesrust-lang#11124rust-lang#11082 still needs discussion and rust-lang#11085 likely can't be fixed.
changelog: [`tuple_array_conversions`]: Move to `pedantic`
changelog: [`tuple_array_conversions`]: Don't lint if mutability of references changes
changelog: [`tuple_array_conversions`]: Don't lint if bindings don't come from the exact same pattern
changelog: [`tuple_array_conversions`]: Don't lint if bindings are used for more than just the conversion
This is a very minor papercut for when one wish to clarify exactly what a pattern is doing; the example above is the main situation in which I've wanted parens, making it clear that it's a
&
pattern + a mutable ident binding, rather than a (hypothetical)&mut
pattern.The text was updated successfully, but these errors were encountered: