about summary refs log tree commit diff
path: root/tests/ui/operator-recovery/box-arithmetic-14915.rs
blob: 0e6f0762998476280accb592f4a7f367d0a56e38 (plain)
1
2
3
4
5
6
7
8
//! 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>`
}