fn makes_copy(some_integer: i32) { // some_integer comes into scope
println!("{}", some_integer);
} // Here, some_integer goes out of scope. Nothing special happens.
官方教程实例 Listing 4-3: Functions with ownership and scope annotated
这里说函数结束后 some_integer 不做处理
是 scalar 类型变量的复制体不释放?
println!("{}", some_integer);
} // Here, some_integer goes out of scope. Nothing special happens.
官方教程实例 Listing 4-3: Functions with ownership and scope annotated
这里说函数结束后 some_integer 不做处理
是 scalar 类型变量的复制体不释放?