Files
rust/tests/ui/operator-recovery/box-arithmetic-14915.rs
2025-08-05 19:34:46 +05:00

9 lines
205 B
Rust

//! Regression test for https://github.com/rust-lang/rust/issues/14915
fn main() {
let x: Box<isize> = Box::new(0);
println!("{}", x + 1);
//~^ ERROR cannot add `{integer}` to `Box<isize>`
}