blob: ca79664d8b74c739fe3a8b270da00b86676cfb45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//@ 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() {}
|