aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/late-not-send.rs
diff options
context:
space:
mode:
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])]