mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00
29 lines
965 B
Plaintext
29 lines
965 B
Plaintext
error: invalid signature for `extern "avr-interrupt"` function
|
|
--> $DIR/interrupt-invalid-signature.rs:44:35
|
|
|
|
|
LL | extern "avr-interrupt" fn avr_arg(_byte: u8) {}
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: functions with the "avr-interrupt" ABI cannot have any parameters or return type
|
|
help: remove the parameters and return type
|
|
|
|
|
LL - extern "avr-interrupt" fn avr_arg(_byte: u8) {}
|
|
LL + extern "avr-interrupt" fn avr_arg() {}
|
|
|
|
|
|
|
error: invalid signature for `extern "avr-interrupt"` function
|
|
--> $DIR/interrupt-invalid-signature.rs:59:40
|
|
|
|
|
LL | extern "avr-interrupt" fn avr_ret() -> u8 {
|
|
| ^^
|
|
|
|
|
= note: functions with the "avr-interrupt" ABI cannot have any parameters or return type
|
|
help: remove the parameters and return type
|
|
|
|
|
LL - extern "avr-interrupt" fn avr_ret() -> u8 {
|
|
LL + extern "avr-interrupt" fn avr_ret() {
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|