diff options
Diffstat (limited to 'tests/ui/panics/fmt-panic.rs')
-rw-r--r-- | tests/ui/panics/fmt-panic.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/panics/fmt-panic.rs b/tests/ui/panics/fmt-panic.rs new file mode 100644 index 000000000..87fb2e6dd --- /dev/null +++ b/tests/ui/panics/fmt-panic.rs @@ -0,0 +1,8 @@ +// run-fail +// error-pattern:meh +// ignore-emscripten no processes + +fn main() { + let str_var: String = "meh".to_string(); + panic!("{}", str_var); +} |