blob: 6404ab8b7aa0f87be5cc4899fd2927f2fa92acbb [file] [log] [blame]
//@ run-pass
use std::ops::Add;
fn show(z: i32) {
println!("{}", z)
}
fn main() {
let x = 23;
let y = 42;
show(Add::add( x, y));
show(Add::add( x, &y));
show(Add::add(&x, y));
show(Add::add(&x, &y));
show( x + y);
show( x + &y);
show(&x + y);
show(&x + &y);
}