We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the following test fails:
#[test(should_fail)] fn test_u8_underflow(){ let a: u8 = 47; let b: u8 = 48; let _ = a - b; }
Because the underflow constraint is optimised out. So we have to use println to make the result value used instead.
Create a function like volatile to make the value used without printing
Nice-to-have
When we're writing tests for stdlib this is going to be an isse
Yes
Use println
No response
None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
Currently the following test fails:
Because the underflow constraint is optimised out. So we have to use println to make the result value used instead.
Happy Case
Create a function like volatile to make the value used without printing
Project Impact
Nice-to-have
Impact Context
When we're writing tests for stdlib this is going to be an isse
Workaround
Yes
Workaround Description
Use println
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: