From 89c922079eaefc748febdb62aeccfff598a07c69 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 12 Feb 2019 15:08:46 +0100 Subject: update examples and tests --- tests/cfail/late-not-send.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/cfail/late-not-send.rs') diff --git a/tests/cfail/late-not-send.rs b/tests/cfail/late-not-send.rs index b9180fe..eb3048d 100644 --- a/tests/cfail/late-not-send.rs +++ b/tests/cfail/late-not-send.rs @@ -22,8 +22,10 @@ const APP: () = { static mut X: NotSend = (); #[init] - fn init() { - X = NotSend { _0: PhantomData }; + fn init() -> init::LateResources { + init::LateResources { + X: NotSend { _0: PhantomData }, + } } #[interrupt(resources = [X])] -- cgit v1.2.3