From d2562e55e641f6dc7e9827cc7a97612ead200eeb Mon Sep 17 00:00:00 2001 From: rowanfr Date: Wed, 6 Sep 2023 02:28:42 -0500 Subject: [PATCH] Added should_panic to tests This commit added should_panic to tests which indicated by their context that they should panic given that they have the panic message in the comments. The only issue is not all of them panic but that should be solved in a separate fork --- tests/compiletest.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index a3f3f90474..c648d15e23 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -67,6 +67,7 @@ fn run_mode(mode: &'static str) { } #[test] +#[should_panic] fn compile_test() { let _ = env_logger::try_init(); run_mode("compile-fail");