Skip to content

Commit fcf0f88

Browse files
committed
adjust tests
1 parent 5a5fa15 commit fcf0f88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/compile-fail/exact_div2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![feature(core_intrinsics)]
22
fn main() {
33
// divison with a remainder
4-
unsafe { std::intrinsics::exact_div(2u16, 3); } //~ ERROR Scalar(0x0002) cannot be divided by Scalar(0x0003) without remainder
4+
unsafe { std::intrinsics::exact_div(2u16, 3); } //~ ERROR 2 cannot be divided by 3 without remainder
55
}

tests/compile-fail/exact_div3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![feature(core_intrinsics)]
22
fn main() {
33
// signed divison with a remainder
4-
unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR Scalar(0xed) cannot be divided by Scalar(0x02) without remainder
4+
unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR 237 cannot be divided by 2 without remainder
55
}

0 commit comments

Comments
 (0)