]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/lifetimes2.rs
Rollup merge of #106097 - mejrs:mir_build2, r=oli-obk
[rust.git] / tests / ui / impl-trait / lifetimes2.rs
1 // check-pass
2
3 pub fn keys<'a>(x: &'a Result<u32, u32>) -> impl std::fmt::Debug + 'a {
4     match x {
5         Ok(map) => Ok(map),
6         Err(map) => Err(map),
7     }
8 }
9
10 fn main() {}