blob: 0e6f0762998476280accb592f4a7f367d0a56e38 [file] [log] [blame]
//! Regression test for https://github.com/rust-lang/rust/issues/14915
fn main() {
let x: Box<isize> = Box::new(0);
println!("{}", x + 1);
//~^ ERROR cannot add `{integer}` to `Box<isize>`
}