diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-02-12 15:08:46 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-02-12 15:08:46 +0100 |
| commit | 89c922079eaefc748febdb62aeccfff598a07c69 (patch) | |
| tree | eebd97bd85976b5aa962353e2a48590e57557447 /tests/cpass/late-not-send.rs | |
| parent | 88599780e0eba38d9e543b7809f586479f6956bd (diff) | |
update examples and tests
Diffstat (limited to 'tests/cpass/late-not-send.rs')
| -rw-r--r-- | tests/cpass/late-not-send.rs | 6 |
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])] |
