rust/tests/ui/mir/issue66339.rs
2024-02-16 20:02:50 +00:00

14 lines
165 B
Rust

//@ compile-flags: -Z mir-opt-level=3
//@ build-pass
// This used to ICE in const-prop
fn foo() {
let bar = |_| { };
bar("a");
}
fn main() {
foo();
}