Enable a test that works now with rustc master.
This commit is contained in:
parent
f9ee6a0a30
commit
dcb2f0f800
1 changed files with 8 additions and 8 deletions
|
|
@ -158,14 +158,14 @@ fn match_my_opt_none() -> i32 {
|
|||
}
|
||||
}
|
||||
|
||||
// #[miri_run(expected = "Int(13)")]
|
||||
// fn match_opt_some() -> i32 {
|
||||
// let x = Some(13);
|
||||
// match x {
|
||||
// Some(data) => data,
|
||||
// None => 42,
|
||||
// }
|
||||
// }
|
||||
#[miri_run(expected = "Int(13)")]
|
||||
fn match_opt_some() -> i32 {
|
||||
let x = Some(13);
|
||||
match x {
|
||||
Some(data) => data,
|
||||
None => 42,
|
||||
}
|
||||
}
|
||||
|
||||
/// Test calling a very simple function from the standard library.
|
||||
#[miri_run(expected = "Int(1)")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue