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
Basically, if you put potential error into const block of associated constant, it doesn't gets evaluated.
Good example is arithmetic_overflow.
By default it triggers compilation error, but not when it is within const block of associated constant
Basically, if you put potential error into const block of associated constant, it doesn't gets evaluated.
Good example is
arithmetic_overflow
.By default it triggers compilation error, but not when it is within const block of associated constant
Rust playgound sample:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=6ae8ce6871821d8fce58cc05dbdd5984
Doubt it is expected behavior?
Instead, this happened: explanation
Happens in both latest stable and nightly
The text was updated successfully, but these errors were encountered: