We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a5fa15 commit fcf0f88Copy full SHA for fcf0f88
tests/compile-fail/exact_div2.rs
@@ -1,5 +1,5 @@
1
#![feature(core_intrinsics)]
2
fn main() {
3
// divison with a remainder
4
- unsafe { std::intrinsics::exact_div(2u16, 3); } //~ ERROR Scalar(0x0002) cannot be divided by Scalar(0x0003) without remainder
+ unsafe { std::intrinsics::exact_div(2u16, 3); } //~ ERROR 2 cannot be divided by 3 without remainder
5
}
tests/compile-fail/exact_div3.rs
// signed divison with a remainder
- unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR Scalar(0xed) cannot be divided by Scalar(0x02) without remainder
+ unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR 237 cannot be divided by 2 without remainder
0 commit comments