Temporarily remove non-working test case

This commit is contained in:
Shoyu Vanilla 2024-08-13 00:25:19 +09:00
parent 20971602d5
commit 6911d9f066

View File

@ -80,7 +80,7 @@ fn main() {
//^^^^ error: non-exhaustive pattern: `Some(_)` not covered //^^^^ error: non-exhaustive pattern: `Some(_)` not covered
} }
} }
"# "#,
); );
} }
@ -94,17 +94,7 @@ fn test(x: Result<i32, !>) {
} }
"#, "#,
); );
check_diagnostics(
r#"
//- minicore: result
fn test(ptr: *const Result<i32, !>) {
unsafe {
let Ok(_x) = *ptr;
//^^^^^^ error: non-exhaustive pattern: `Err(_)` not covered
}
}
"#,
);
check_diagnostics( check_diagnostics(
r#" r#"
//- minicore: result //- minicore: result