]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-21922.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-21922.rs
1 // run-pass
2 use std::ops::Add;
3 fn show(z: i32) {
4 println!("{}", z)
5 }
6 fn main() {
7 let x = 23;
8 let y = 42;
9 show(Add::add( x, y));
10 show(Add::add( x, &y));
11 show(Add::add(&x, y));
12 show(Add::add(&x, &y));
13 show( x + y);
14 show( x + &y);
15 show(&x + y);
16 show(&x + &y);
17 }