1
Fork 0
rust/src/test/ui/issues/issue-14915.rs

9 lines
164 B
Rust
Raw Normal View History

2015-01-07 18:53:58 -08:00
#![feature(box_syntax)]
fn main() {
2014-12-05 18:12:25 -08:00
let x: Box<isize> = box 0;
2017-01-21 17:40:31 +03:00
println!("{}", x + 1);
2019-12-11 23:11:32 +01:00
//~^ ERROR cannot add `{integer}` to `std::boxed::Box<isize>`
}