summaryrefslogtreecommitdiffstats
path: root/tests/ui/mir/issue66339.rs
blob: f25afd5602d34be4dd3960a47f59184c414ff0e7 (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 = |_| { };
    bar("a");
}

fn main() {
    foo();
}