diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/parser/parse-panic.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/parser/parse-panic.rs b/src/test/ui/parser/parse-panic.rs new file mode 100644 index 000000000..aeb2ba4fa --- /dev/null +++ b/src/test/ui/parser/parse-panic.rs @@ -0,0 +1,8 @@ +// run-pass + +#![allow(dead_code)] +#![allow(unreachable_code)] + +fn dont_call_me() { panic!(); println!("{}", 1); } + +pub fn main() { } |