summaryrefslogtreecommitdiff
path: root/meap/meap-code/ch6/ch6-heap-vs-stack-intro/src/main.rs
blob: cb139265f20735fa439e3a8cfdf3d0ec39492e1d (plain) (blame)
1
2
3
4
5
6
fn main() {
    let a: i32 = 40;
    let b: Box<i32> = Box::new(60);

    println!("{} + {} = {}", a, b, a + *b); 
}