aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/tests/compile-fail/hard-fault-twice.rs')
-rw-r--r--cortex-m-rt/tests/compile-fail/hard-fault-twice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs b/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs
index 030b54c..03b79a5 100644
--- a/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs
+++ b/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs
@@ -12,7 +12,7 @@ fn foo() -> ! {
}
#[exception]
-fn HardFault(_ef: &ExceptionFrame) -> ! {
+unsafe fn HardFault(_ef: &ExceptionFrame) -> ! {
loop {}
}
@@ -20,7 +20,7 @@ pub mod reachable {
use cortex_m_rt::{exception, ExceptionFrame};
#[exception] //~ ERROR symbol `HardFault` is already defined
- fn HardFault(_ef: &ExceptionFrame) -> ! {
+ unsafe fn HardFault(_ef: &ExceptionFrame) -> ! {
loop {}
}
}