add regression test for issue 153695

This commit is contained in:
Takayuki Maeda
2026-03-18 12:41:18 +09:00
parent fd2649988f
commit fac53a0cf8
@@ -0,0 +1,13 @@
//@ check-pass
//@ edition: 2024
#![feature(never_patterns)]
#![allow(incomplete_features)]
#![allow(unreachable_code)]
fn main() {
let _ = Some({
return;
})
.map(|!| [1]);
}