summaryrefslogtreecommitdiffstats
path: root/tests/ui/mir/issue66339.rs
blob: 2507af38cdf73c9931c8e18b5ecb62ce177c0fec (plain)
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();
}