Temporarily remove non-working test case

This commit is contained in:
Shoyu Vanilla 2024-08-13 00:25:19 +09:00
parent 5316ba9158
commit a7bc556a5e

View file

@ -80,7 +80,7 @@ fn main() {
//^^^^ 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(
r#"
//- minicore: result