summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/match-unification.rs
blob: f5c2abc0efa2ea12171e403be060ac219ad563a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::fmt::Debug;

// check-pass

fn bar() -> impl Debug {}

fn baz(b: bool) -> Option<impl Debug> {
    match b {
        true => baz(false),
        false => Some(bar()),
    }
}

fn main() {}