aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/late-not-send.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-02-12 15:08:46 +0100
committerJorge Aparicio <jorge@japaric.io>2019-02-12 15:08:46 +0100
commit89c922079eaefc748febdb62aeccfff598a07c69 (patch)
treeeebd97bd85976b5aa962353e2a48590e57557447 /tests/cfail/late-not-send.rs
parent88599780e0eba38d9e543b7809f586479f6956bd (diff)
update examples and tests
Diffstat (limited to 'tests/cfail/late-not-send.rs')
-rw-r--r--tests/cfail/late-not-send.rs6
1 files changed, 4 insertions, 2 deletions
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])]