]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/validity/invalid_char.rs
rustup, adjust error messages
[rust.git] / tests / compile-fail / validity / invalid_char.rs
index 42922cdc917c8b5d7bfb054a0c92a08af07a0d87..2801f3297156917bc4d8a1a6e5cddd53b0b8213e 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 a valid unicode codepoint
+    let _val = match unsafe { std::mem::transmute::<i32, char>(-1) } { //~ ERROR encountered 0xffffffff, but expected a valid unicode codepoint
         'a' => {true},
         'b' => {false},
         _ => {true},