rust/src/test/ui/issues/issue-14915.rs
2018-12-25 21:08:33 -07:00

9 lines
185 B
Rust

#![feature(box_syntax)]
fn main() {
let x: Box<isize> = box 0;
println!("{}", x + 1);
//~^ ERROR binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
}