aboutsummaryrefslogtreecommitdiff
path: root/tests/cpass/late-not-send.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpass/late-not-send.rs')
-rw-r--r--tests/cpass/late-not-send.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/cpass/late-not-send.rs b/tests/cpass/late-not-send.rs
index 06d376b..5b278ab 100644
--- a/tests/cpass/late-not-send.rs
+++ b/tests/cpass/late-not-send.rs
@@ -19,10 +19,12 @@ const APP: () = {
static mut Y: Option<NotSend> = None;
#[init(resources = [Y])]
- fn init() {
+ fn init() -> init::LateResources {
*resources.Y = Some(NotSend { _0: PhantomData });
- X = NotSend { _0: PhantomData };
+ init::LateResources {
+ X: NotSend { _0: PhantomData },
+ }
}
#[idle(resources = [X, Y])]