summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-14915.rs
blob: 909540355ed89a5e5ab3be6749d6bb4e483f767c (plain)
1
2
3
4
5
6
7
8
#![feature(box_syntax)]

fn main() {
    let x: Box<isize> = box 0;

    println!("{}", x + 1);
    //~^ ERROR cannot add `{integer}` to `Box<isize>`
}