comment_edit
This commit is contained in:
parent
c3c2f41509
commit
8e647bc6e5
1 changed files with 2 additions and 1 deletions
|
@ -18,8 +18,9 @@ fn main()
|
|||
println!("s3 = {}", s3);
|
||||
println!("s4 = {}", s4);
|
||||
|
||||
//"Copy" all data are in stack
|
||||
//All data are in stack
|
||||
//Because size is known while compiling
|
||||
//"Copy"
|
||||
let x = 5;
|
||||
let y = x;
|
||||
println!("x = {}", x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue