diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-948.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-948.rs b/src/test/ui/issues/issue-948.rs new file mode 100644 index 000000000..b9bbeb395 --- /dev/null +++ b/src/test/ui/issues/issue-948.rs @@ -0,0 +1,15 @@ +// run-fail +// error-pattern:beep boop +// ignore-emscripten no processes + +#![allow(unused_variables)] + +struct Point { + x: isize, + y: isize, +} + +fn main() { + let origin = Point { x: 0, y: 0 }; + let f: Point = Point { x: (panic!("beep boop")), ..origin }; +} |