error[E0308]: mismatched types --> tests/compile-fail/swm/unassign-function-from-wrong-pin.rs:30:39 | 30 | let (u0_rxd, _) = u0_rxd.unassign(pio0_1.into_swm_pin(), &mut swm_handle); | -------- ^^^^^^^^^^^^^^^^^^^^^ expected struct `PIO0_0`, found struct `PIO0_1` | | | arguments to this function are incorrect | = note: expected struct `lpc8xx_hal::pins::Pin>` found struct `lpc8xx_hal::pins::Pin>` note: associated function defined here --> src/swm/functions.rs | | pub fn unassign( | ^^^^^^^^