mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 11:23:03 +00:00
Uncomment other MyOption test.
This commit is contained in:
parent
fbf49715c9
commit
947c1badd1
@ -121,6 +121,15 @@ fn match_my_opt_some() -> i32 {
|
||||
}
|
||||
}
|
||||
|
||||
#[miri_run(expected = "Int(42)")]
|
||||
fn match_my_opt_none() -> i32 {
|
||||
let x = MyOption::None;
|
||||
match x {
|
||||
MyOption::Some { data } => data,
|
||||
MyOption::None => 42,
|
||||
}
|
||||
}
|
||||
|
||||
// #[miri_run(expected = "Int(13)")]
|
||||
// fn match_opt_some() -> i32 {
|
||||
// let x = Some(13);
|
||||
@ -130,15 +139,6 @@ fn match_my_opt_some() -> i32 {
|
||||
// }
|
||||
// }
|
||||
|
||||
// #[miri_run(expected = "Int(42)")]
|
||||
// fn match_opt_none() -> i32 {
|
||||
// let x = MyOption::None;
|
||||
// match x {
|
||||
// MyOption::Some { data } => data,
|
||||
// MyOption::None => 42,
|
||||
// }
|
||||
// }
|
||||
|
||||
/// Test calling a very simple function from the standard library.
|
||||
#[miri_run(expected = "Int(1)")]
|
||||
fn cross_crate_fn_call() -> i32 {
|
||||
|
Loading…
Reference in New Issue
Block a user