We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The following code results in a const eval divide by zero error, when it cannot actually error at runtime:
pub fn foo(mut n: i32) { if n < 0i32 { n = 0i32 } if n > 0i32 { dbg!((1i32) / n); } }
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ee4964acbb7fe290cfdaa573fddf5195