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/init-not-send.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/init-not-send.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/cfail/init-not-send.rs b/tests/cfail/init-not-send.rs index 3ac495f5..5a33fac7 100644 --- a/tests/cfail/init-not-send.rs +++ b/tests/cfail/init-not-send.rs @@ -1,6 +1,5 @@ //! This is equivalent to the `late-not-send` cfail test -#![feature(extern_crate_item_prelude)] // ??? #![no_main] #![no_std] @@ -21,10 +20,10 @@ const APP: () = { static mut X: Option<NotSend> = None; #[init(resources = [X])] - fn init() { - *resources.X = Some(NotSend { _0: PhantomData }) + fn init(c: init::Context) { + *c.resources.X = Some(NotSend { _0: PhantomData }) } #[interrupt(resources = [X])] - fn UART0() {} + fn UART0(_: UART0::Context) {} }; |