diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-14915.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-14915.rs b/src/test/ui/issues/issue-14915.rs new file mode 100644 index 000000000..909540355 --- /dev/null +++ b/src/test/ui/issues/issue-14915.rs @@ -0,0 +1,8 @@ +#![feature(box_syntax)] + +fn main() { + let x: Box<isize> = box 0; + + println!("{}", x + 1); + //~^ ERROR cannot add `{integer}` to `Box<isize>` +} |