1 2 3 4 5 6 7 8 9 10 11
#![no_main] #[mock::app] const APP: () = { #[init] fn foo(_: foo::Context) {} // name collides with `#[idle]` function #[task] fn foo(_: foo::Context) {} };