diff options
Diffstat (limited to 'tests/ui/panics/args-panic.rs')
-rw-r--r-- | tests/ui/panics/args-panic.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/panics/args-panic.rs b/tests/ui/panics/args-panic.rs new file mode 100644 index 000000000..7636025c2 --- /dev/null +++ b/tests/ui/panics/args-panic.rs @@ -0,0 +1,11 @@ +// run-fail +// error-pattern:meep +// ignore-emscripten no processes + +fn f(_a: isize, _b: isize, _c: Box<isize>) { + panic!("moop"); +} + +fn main() { + f(1, panic!("meep"), Box::new(42)); +} |