From 271df39bdba0690ea7ba77a6ff5d8d7edb9b8036 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 27 Jul 2017 21:30:24 -0500 Subject: `Send`-ness check is now in rtfm-core --- tests/cfail/token-transfer.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/cfail/token-transfer.rs') diff --git a/tests/cfail/token-transfer.rs b/tests/cfail/token-transfer.rs index d10b82b..38e8786 100644 --- a/tests/cfail/token-transfer.rs +++ b/tests/cfail/token-transfer.rs @@ -15,10 +15,13 @@ app! { //~ error bound `rtfm::Threshold: core::marker::Send` is not satisfied static TOKEN: Option = None; }, + idle: { + resources: [TOKEN], + }, + tasks: { EXTI0: { path: exti0, - priority: 1, resources: [TOKEN], }, } @@ -26,7 +29,7 @@ app! { //~ error bound `rtfm::Threshold: core::marker::Send` is not satisfied fn init(_p: init::Peripherals, _r: init::Resources) {} -fn idle() -> ! { +fn idle(_t: &mut Threshold, _r: idle::Resources) -> ! { loop {} } -- cgit v1.2.3