mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-27 04:31:18 +00:00
12 lines
166 B
Rust
12 lines
166 B
Rust
//@ 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;
|
|
}
|