mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
fix test for latest rustc
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
nightly-2018-09-24
|
||||
nightly-2018-09-29
|
||||
|
||||
@@ -8,8 +8,8 @@ pub enum Foo {
|
||||
|
||||
fn main() {
|
||||
let f = unsafe { std::mem::transmute::<i32, Foo>(42) };
|
||||
match f { //~ ERROR invalid enum discriminant
|
||||
Foo::A => {},
|
||||
match f {
|
||||
Foo::A => {}, //~ ERROR invalid enum discriminant
|
||||
Foo::B => {},
|
||||
Foo::C => {},
|
||||
Foo::D => {},
|
||||
|
||||
Reference in New Issue
Block a user