aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-10-26 21:22:43 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-10-26 21:22:43 +0200
commitadf49361cd19291005bbc9645e41ed334abb2e66 (patch)
tree9ef9dc68d78025cafdf6f1a1b79e91d10333e3af /cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs
parentc5d24f867d7d4f4f270ba99eef89f97cf38a4445 (diff)
downloadcortex-m-adf49361cd19291005bbc9645e41ed334abb2e66.tar.gz
cortex-m-adf49361cd19291005bbc9645e41ed334abb2e66.tar.zst
cortex-m-adf49361cd19291005bbc9645e41ed334abb2e66.zip
attributes: turn panics into compile errors
Sample error messages: ``` error: `#[entry]` function must have signature `[unsafe] fn() -> !` --> examples/error.rs:15:1 | 15 | fn main() { | ^^ error: aborting due to previous error ``` ``` error: This attribute accepts no arguments --> examples/error.rs:14:1 | 14 | #[entry(hello)] | ^^^^^^^^^^^^^^^ error: aborting due to previous error ``` ``` error: This is not a valid exception name --> examples/error.rs:20:4 | 20 | fn foo() {} | ^^^ error: aborting due to previous error ```
Diffstat (limited to 'cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs')
0 files changed, 0 insertions, 0 deletions