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
I think this is nearly a duplicate of #96952. See also #101532.
I think it's very possible that when using const _, the compiler assumes the value is never "used", and thus evaluating the const expression has no effect. However, that is no longer true since #89508 where panic support was added. (Just an idle speculation.)
I'm not sure if this is expected. In this code I've used a const test function, and I call it inside a const assert:
This code works correctly, but rusts gives a "warning: function
test
is never used".The text was updated successfully, but these errors were encountered: