2015-01-07 18:53:58 -08:00
|
|
|
#![feature(box_syntax)]
|
|
|
|
|
2014-06-15 10:04:55 -07:00
|
|
|
fn main() {
|
2014-12-05 18:12:25 -08:00
|
|
|
let x: Box<isize> = box 0;
|
2014-06-15 10:04:55 -07:00
|
|
|
|
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>`
|
2014-06-15 10:04:55 -07:00
|
|
|
}
|