The split between walk_pat and maybe_read_scrutinee has now become redundant. Due to this change, one testcase within the testsuite has become similar enough to a known ICE to also break. I am leaving this as future work, as it requires feature(type_alias_impl_trait)
15 lines
255 B
Rust
15 lines
255 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((a, b)) => (),
|
|
}
|
|
};
|
|
}
|
|
|
|
pub fn main() {}
|