rust/tests/ui/drop/drop-if-let-binding.rs
2024-02-16 20:02:50 +00:00

8 lines
150 B
Rust

//@ build-pass
// regression test for issue #88307
//@ compile-flags: -C opt-level=s
fn main() {
if let Some(_val) = Option::<String>::None {}
}