From 98d2af9d73da56910c8bb6cb662fbc4d609a704a Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 7 Jul 2021 22:50:59 +0200 Subject: Fixing tests --- examples/type-usage.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'examples/type-usage.rs') diff --git a/examples/type-usage.rs b/examples/type-usage.rs index 9bb7eb8..e5a088f 100644 --- a/examples/type-usage.rs +++ b/examples/type-usage.rs @@ -10,6 +10,17 @@ use rtic::app; mod app { type Test = u32; + #[shared] + struct Shared {} + + #[local] + struct Local {} + + #[init] + fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { + (Shared {}, Local {}, init::Monotonics {}) + } + #[task] fn t1(_: t1::Context, _val: Test) {} } -- cgit v1.2.3