about summary refs log tree commit diff
path: root/tests/crashes/140011.rs
blob: b9d57a2822d213f88c960803c0b0d3d5b8b1cd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ known-bug: #140011
//@compile-flags: -Wrust-2021-incompatible-closure-captures
enum b {
    c(d),
    e(f),
}
struct f;
fn g() {
    let h;
    || b::e(a) = h;
}