aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/token-outlive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cfail/token-outlive.rs')
-rw-r--r--tests/cfail/token-outlive.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cfail/token-outlive.rs b/tests/cfail/token-outlive.rs
index 9bcd2882..93d1c604 100644
--- a/tests/cfail/token-outlive.rs
+++ b/tests/cfail/token-outlive.rs
@@ -38,7 +38,7 @@ fn idle() -> ! {
task!(EXTI0, exti0);
-fn exti0(mut t: Threshold, r: EXTI0::Resources) {
+fn exti0(mut t: &mut Threshold, r: EXTI0::Resources) {
// ERROR token should not outlive the critical section
let t = r.STATE.claim(&mut t, |_state, t| t);
//~^ error cannot infer an appropriate lifetime
@@ -46,4 +46,4 @@ fn exti0(mut t: Threshold, r: EXTI0::Resources) {
task!(EXTI1, exti1);
-fn exti1(_t: Threshold, _r: EXTI1::Resources) {}
+fn exti1(_t: &mut Threshold, _r: EXTI1::Resources) {}