]> git.lizzy.rs Git - rust.git/commitdiff
rustup
authorRalf Jung <post@ralfj.de>
Mon, 16 Mar 2020 20:32:57 +0000 (21:32 +0100)
committerRalf Jung <post@ralfj.de>
Mon, 16 Mar 2020 20:32:57 +0000 (21:32 +0100)
rust-version
tests/compile-fail/exact_div2.rs
tests/compile-fail/exact_div3.rs

index 085e3695a1965c6c4d1e76fda51a139c7234e96c..dce708705b33a5dbd904bb9bed7e36002c02f89d 100644 (file)
@@ -1 +1 @@
-97eda01bb79de1e0a52994f52cfb5a527687f505
+dd67187965e136bff1ed05e035293441c60f0790
index f4400d0d8ae2232711608f0fa6dbf87158c34d9d..9b9ae807088d773a6fa71c4225525f79fb9c15c1 100644 (file)
@@ -1,5 +1,5 @@
 #![feature(core_intrinsics)]
 fn main() {
     // divison with a remainder
-    unsafe { std::intrinsics::exact_div(2u16, 3); } //~ ERROR 2 cannot be divided by 3 without remainder
+    unsafe { std::intrinsics::exact_div(2u16, 3); } //~ ERROR 2u16 cannot be divided by 3u16 without remainder
 }
index 0d5097a87a20829fa5505915571897f692abe691..1cd112acfc2d5f9775cae80e35cc178dc94177a2 100644 (file)
@@ -1,5 +1,5 @@
 #![feature(core_intrinsics)]
 fn main() {
     // signed divison with a remainder
-    unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR -19 cannot be divided by 2 without remainder
+    unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR -19i8 cannot be divided by 2i8 without remainder
 }