1 2 3 4 5 6 7 8
fn add_with_lifetimes<'a, 'b>(i: &'a i32, j: &'b i32) -> i32 { *i + *j } fn main() { let res = add_with_lifetimes(&10, &20); println!("{}", res); }