aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs')
-rw-r--r--cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs b/cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs
index 0f2ddca..09b75e9 100644
--- a/cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs
+++ b/cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs
@@ -7,7 +7,7 @@ extern crate panic_semihosting;
use cortex_m_rt::entry;
#[entry] //~ ERROR custom attribute panicked
-//~^ HELP `#[entry]` function must have signature `fn() -> !`
-unsafe fn foo() -> ! {
+//~^ HELP `#[entry]` function must have signature `[unsafe] fn() -> !`
+extern "C" fn foo() -> ! {
loop {}
}