From d0aaa2a805afdda30b49b3dfdb7072f302855a79 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 21 Apr 2019 20:20:15 +0200 Subject: update compile-fail tests --- tests/cfail/late-not-send.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 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 eb3048d..04a4af1 100644 --- a/tests/cfail/late-not-send.rs +++ b/tests/cfail/late-not-send.rs @@ -1,7 +1,6 @@ //! `init` has a static priority of `0`. Initializing resources from it is equivalent to sending a //! message to the task that will own the resource -#![feature(extern_crate_item_prelude)] // ??? #![no_main] #![no_std] @@ -22,12 +21,12 @@ const APP: () = { static mut X: NotSend = (); #[init] - fn init() -> init::LateResources { + fn init(_: init::Context) -> init::LateResources { init::LateResources { X: NotSend { _0: PhantomData }, } } #[interrupt(resources = [X])] - fn UART0() {} + fn UART0(_: UART0::Context) {} }; -- cgit v1.2.3