mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
16 lines
254 B
Rust
16 lines
254 B
Rust
//@ known-bug: #119786
|
|
//@ edition:2021
|
|
|
|
fn enum_upvar() {
|
|
type T = impl Copy;
|
|
let foo: T = Some((1u32, 2u32));
|
|
let x = move || {
|
|
match foo {
|
|
None => (),
|
|
Some(yield) => (),
|
|
}
|
|
};
|
|
}
|
|
|
|
pub fn main() {}
|