diff options
author | 2019-04-21 20:20:15 +0200 | |
---|---|---|
committer | 2019-05-01 20:49:25 +0200 | |
commit | d0aaa2a805afdda30b49b3dfdb7072f302855a79 (patch) | |
tree | 037714c3934d616eb3015b827a6bcd54d53cb52e /tests/cfail/needs-sync.rs | |
parent | d2fb62f729de3ad24132b69298e17193ac334df4 (diff) | |
download | rtic-d0aaa2a805afdda30b49b3dfdb7072f302855a79.tar.gz rtic-d0aaa2a805afdda30b49b3dfdb7072f302855a79.tar.zst rtic-d0aaa2a805afdda30b49b3dfdb7072f302855a79.zip |
update compile-fail tests
Diffstat (limited to '')
-rw-r--r-- | tests/cfail/needs-sync.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/cfail/needs-sync.rs b/tests/cfail/needs-sync.rs index f25f91a2..6025e7d5 100644 --- a/tests/cfail/needs-sync.rs +++ b/tests/cfail/needs-sync.rs @@ -1,4 +1,3 @@ -#![feature(extern_crate_item_prelude)] // ??? #![no_main] #![no_std] @@ -21,13 +20,13 @@ const APP: () = { static X: NotSync = NotSync { _0: PhantomData }; #[init(spawn = [foo])] - fn init() {} + fn init(_: init::Context) {} #[task(priority = 1, resources = [X])] - fn foo() {} + fn foo(_: foo::Context) {} #[task(priority = 2, resources = [X])] - fn bar() {} + fn bar(_: bar::Context) {} extern "C" { fn UART0(); |