summary refs log tree commit diff
path: root/src/test/ui/issues/issue-14915.rs
blob: 4acb51a4e50fa6ff08281ea6faedf4da716b7445 (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 `std::boxed::Box<isize>`
}