From 97a7e38db7eb0643a6334aba30077622d09e5c85 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 18 Jul 2017 20:03:22 -0500 Subject: tasks / idle have exclusive access to Threshold, but do not own the token --- tests/cfail/wrong-threshold.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/cfail/wrong-threshold.rs') diff --git a/tests/cfail/wrong-threshold.rs b/tests/cfail/wrong-threshold.rs index af8bb05..39d3a57 100644 --- a/tests/cfail/wrong-threshold.rs +++ b/tests/cfail/wrong-threshold.rs @@ -39,7 +39,7 @@ fn idle() -> ! { task!(EXTI0, exti0); -fn exti0(mut ot: Threshold, r: EXTI0::Resources) { +fn exti0(mut ot: &mut Threshold, r: EXTI0::Resources) { r.A.claim(&mut ot, |_a, mut _it| { //~^ error cannot borrow `ot` as mutable more than once at a time //~| error cannot borrow `ot` as mutable more than once at a time @@ -50,4 +50,4 @@ fn exti0(mut ot: Threshold, r: EXTI0::Resources) { task!(EXTI1, exti1); -fn exti1(_t: Threshold, r: EXTI1::Resources) {} +fn exti1(_t: &mut Threshold, r: EXTI1::Resources) {} -- cgit v1.2.3