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
{{ message }}
Repository navigation
mut is accepted before constants in patterns #34047
@durka The example matches on 1, while C is 0, so of course it doesn't match. Conversely, match 0u8 correctly takes the C arm, and the generated code looks good too. It seems the mut is simply ignored.
Activity
durka commentedon Jun 2, 2016
It doesn't match though: https://is.gd/ylHuUv
hanna-kruppe commentedon Jun 2, 2016
@durka The example matches on 1, while C is 0, so of course it doesn't match. Conversely,
match 0u8correctly takes theCarm, and the generated code looks good too. It seems themutis simply ignored.Auto merge of #34095 - petrochenkov:pathir2, r=jseyfried