summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/issue-96572-unconstrained-mismatch.rs
blob: 825710851b01f0dcab6c8bdb7cdd1f6fd9f916da (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(type_alias_impl_trait)]

fn main() {
    type T = impl Copy;
    let foo: T = Some((1u32, 2u32));
    match foo {
        None => (),
        Some((a, b, c)) => (), //~ ERROR mismatched types
    }
}