diff options
author | 2018-10-26 22:09:00 +0200 | |
---|---|---|
committer | 2018-10-26 22:09:00 +0200 | |
commit | 5baf35a9942621ec38e06ebd98574778e41451bd (patch) | |
tree | 5708703b1f9849f6f20aa13f86d23725935b6342 /cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs | |
parent | adf49361cd19291005bbc9645e41ed334abb2e66 (diff) | |
download | cortex-m-5baf35a9942621ec38e06ebd98574778e41451bd.tar.gz cortex-m-5baf35a9942621ec38e06ebd98574778e41451bd.tar.zst cortex-m-5baf35a9942621ec38e06ebd98574778e41451bd.zip |
update error messages in compile-fail tests
Diffstat (limited to 'cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs')
-rw-r--r-- | cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs b/cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs index 2b71a57..359444c 100644 --- a/cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs +++ b/cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs @@ -6,6 +6,6 @@ extern crate panic_halt; use cortex_m_rt::entry; -#[entry] //~ ERROR custom attribute panicked -//~^ HELP `#[entry]` function must have signature `[unsafe] fn() -> !` +#[entry] fn foo(undef: i32) -> ! {} +//~^ ERROR `#[entry]` function must have signature `[unsafe] fn() -> !` |