]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/validity/invalid_char.rs
Update all tests
[rust.git] / tests / compile-fail / validity / invalid_char.rs
index a3f90703634919f81894cc55dc30db888d9fcaf5..079823f894a86cc9ef7187720a12c4cc133a6dc3 100644 (file)
@@ -1,6 +1,6 @@
 fn main() {
     assert!(std::char::from_u32(-1_i32 as u32).is_none());
-    let _val = match unsafe { std::mem::transmute::<i32, char>(-1) } { //~ ERROR encountered 4294967295, but expected something less or equal to 1114111
+    let _val = match unsafe { std::mem::transmute::<i32, char>(-1) } { //~ ERROR encountered 0xffffffff, but expected a valid unicode scalar value
         'a' => {true},
         'b' => {false},
         _ => {true},