summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/lifetimes2.rs
blob: 834f2dc6cb5b6dfde14de37e2e7cd83d73e9c85e (plain)
1
2
3
4
5
6
7
8
9
10
// check-pass

pub fn keys<'a>(x: &'a Result<u32, u32>) -> impl std::fmt::Debug + 'a {
    match x {
        Ok(map) => Ok(map),
        Err(map) => Err(map),
    }
}

fn main() {}