rust/src/test/ui/issues/issue-2633-2.rs
2019-07-27 18:56:16 +03:00

15 lines
215 B
Rust

// run-pass
// pretty-expanded FIXME #23616
#![feature(box_syntax)]
fn a_val(x: Box<isize>, y: Box<isize>) -> isize {
*x + *y
}
pub fn main() {
let z: Box<_> = box 22;
a_val(z.clone(), z.clone());
}