Auto merge of #1442 - RalfJung:rustup, r=RalfJung

rustup, adjust error message
This commit is contained in:
bors 2020-05-31 08:30:51 +00:00
commit 177d5f861f
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0e9e4083100aa3ebf09b8f1ace0348cb37475eb9
b6fa392238a459c29a47e2cf824d79a49a8ba039

View 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 0xffffffff, but expected a valid unicode codepoint
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},