Files
rust/tests/ui/operator-recovery/box-arithmetic-14915.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
205 B
Rust
Raw Normal View History

2025-07-24 17:52:22 +05:00
//! Regression test for https://github.com/rust-lang/rust/issues/14915
fn main() {
let x: Box<isize> = Box::new(0);
2017-01-21 17:40:31 +03:00
println!("{}", x + 1);
//~^ ERROR cannot add `{integer}` to `Box<isize>`
}