rust/tests/ui/issues/issue-14915.rs

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

7 lines
133 B
Rust
Raw Normal View History

fn main() {
let x: Box<isize> = Box::new(0);
2017-01-21 14:40:31 +00:00
println!("{}", x + 1);
//~^ ERROR cannot add `{integer}` to `Box<isize>`
}