summary refs log tree commit diff
path: root/src/test/ui/issues/issue-14915.rs
blob: 294533f0cbb75c094e118913706281ad9237ab7b (plain)
1
2
3
4
5
6
7
8
#![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>`
}