]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21922.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.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 }