RBE types inference
This commit is contained in:
parent
abd957d42f
commit
b25e99a632
9
rustbyexample/types/inference.rs
Normal file
9
rustbyexample/types/inference.rs
Normal file
@ -0,0 +1,9 @@
|
||||
fn main() {
|
||||
let elem = 5u8;
|
||||
|
||||
let mut vec = Vec::new();
|
||||
|
||||
vec.push(elem);
|
||||
|
||||
println!("{:?}", vec);
|
||||
}
|
Loading…
Reference in New Issue
Block a user