Skip to content
Snippets Groups Projects
Select Git revision
  • b47e562abaa2d0e055d47d4c7162d9cbf5af8d43
  • master default protected
2 results

call2.rs

Blame
  • call2.rs 135 B
    fn f(x: i32, y: i32) -> i32 {
        3 + 5 + x + y
    }
    
    fn main() -> i32 {
        let a = 1;
        let b = 2;
        f(a, a + b) // call by value
    }