mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-01 17:37:36 +00:00
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
error: invalid signature for `extern "msp430-interrupt"` function
|
|
--> $DIR/interrupt-invalid-signature.rs:40:41
|
|
|
|
|
LL | extern "msp430-interrupt" fn msp430_arg(_byte: u8) {}
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: functions with the "msp430-interrupt" ABI cannot have any parameters or return type
|
|
help: remove the parameters and return type
|
|
|
|
|
LL - extern "msp430-interrupt" fn msp430_arg(_byte: u8) {}
|
|
LL + extern "msp430-interrupt" fn msp430_arg() {}
|
|
|
|
|
|
|
error: invalid signature for `extern "msp430-interrupt"` function
|
|
--> $DIR/interrupt-invalid-signature.rs:65:46
|
|
|
|
|
LL | extern "msp430-interrupt" fn msp430_ret() -> u8 {
|
|
| ^^
|
|
|
|
|
= note: functions with the "msp430-interrupt" ABI cannot have any parameters or return type
|
|
help: remove the parameters and return type
|
|
|
|
|
LL - extern "msp430-interrupt" fn msp430_ret() -> u8 {
|
|
LL + extern "msp430-interrupt" fn msp430_ret() {
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|