first commit
This commit is contained in:
commit
4cd2267497
10 changed files with 644 additions and 0 deletions
8
examples/borrow.rs
Normal file
8
examples/borrow.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#![allow(unused)]
|
||||
|
||||
fn main() {
|
||||
let mut a = 5;
|
||||
let b = &mut a;
|
||||
let x = &a;
|
||||
println!("{}", b);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue