Unable to reason why dereferencing and not dereferencing gives the same result in Rust while accessing reference variables

前端 未结 0 796
梦如初夏
梦如初夏 2021-01-31 11:24

I have to implement a function that adds two numbers:

fn add(x: &i32, y: &i32) -> i32 {
    println!("x is: {}, y is {}", x, y);
    println!         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题