summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-14915.rs
blob: 127b909dd63eb129492e728d72c51bc57d10601f (plain)
1
2
3
4
5
6
fn main() {
    let x: Box<isize> = Box::new(0);

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