diff --git a/examples/late-resources.rs b/examples/late-resources.rs
index b60c7740f628962e7f0472ffc4422ddb070e9308..bc386584d9b1b8204b89fb4935cb33227f542b6e 100644
--- a/examples/late-resources.rs
+++ b/examples/late-resources.rs
@@ -35,7 +35,7 @@ app! {
     idle: {
         // Test that late resources can be used in idle
         resources: [IP_ADDRESS],
-    }
+    },
 
     tasks: {
         SYS_TICK: {
@@ -76,7 +76,7 @@ fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) {
 
 fn exti0(_t: &mut Threshold, _r: EXTI0::Resources) {}
 
-fn idle() -> ! {
+fn idle(_t: &mut Threshold, _r: idle::Resources) -> ! {
     loop {
         rtfm::wfi();
     }