summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/tait-normalize.rs
blob: 26d94dbb42a36a9fddaa5dd1104b2191847a85eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

#![feature(type_alias_impl_trait)]

fn enum_upvar() {
    type T = impl Copy;
    let foo: T = Some((1u32, 2u32));
    let x = move || match foo {
        None => (),
        Some((a, b)) => (),
    };
}

fn main(){}