mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
add regression test for issue 153695
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
//@ check-pass
|
||||
//@ edition: 2024
|
||||
|
||||
#![feature(never_patterns)]
|
||||
#![allow(incomplete_features)]
|
||||
#![allow(unreachable_code)]
|
||||
|
||||
fn main() {
|
||||
let _ = Some({
|
||||
return;
|
||||
})
|
||||
.map(|!| [1]);
|
||||
}
|
||||
Reference in New Issue
Block a user