about summary refs log tree commit diff
path: root/tests/ui/abi/interrupt-invalid-signature.avr.stderr
blob: 91f5ca2022e38ac40b8e90dd30fb0e873617db34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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