1 2 3 4 5 6 7 8 9 10 11 12 13
// compile-flags: -Z mir-opt-level=3 // build-pass // This used to ICE in const-prop fn foo() { let bar = |_| { }; let _ = bar("a"); } fn main() { foo(); }