mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
bump Rust version
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
nightly-2018-11-07
|
||||
nightly-2018-11-08
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
fn main() {
|
||||
let _b = unsafe { std::mem::transmute::<u8, bool>(2) }; //~ ERROR encountered 2, but expected something in the range 0..=1
|
||||
let _b = unsafe { std::mem::transmute::<u8, bool>(2) }; //~ ERROR encountered 2, but expected something less or equal to 1
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
fn main() {
|
||||
assert!(std::char::from_u32(-1_i32 as u32).is_none());
|
||||
let _ = match unsafe { std::mem::transmute::<i32, char>(-1) } { //~ ERROR encountered 4294967295, but expected something in the range 0..=1114111
|
||||
let _ = match unsafe { std::mem::transmute::<i32, char>(-1) } { //~ ERROR encountered 4294967295, but expected something less or equal to 1114111
|
||||
'a' => {true},
|
||||
'b' => {false},
|
||||
_ => {true},
|
||||
|
||||
Reference in New Issue
Block a user