aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/ui/init-divergent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rtic-macros/ui/init-divergent.rs')
-rw-r--r--rtic-macros/ui/init-divergent.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/rtic-macros/ui/init-divergent.rs b/rtic-macros/ui/init-divergent.rs
new file mode 100644
index 0000000..5e4e96a
--- /dev/null
+++ b/rtic-macros/ui/init-divergent.rs
@@ -0,0 +1,13 @@
+#![no_main]
+
+#[rtic_macros::mock_app(device = mock)]
+mod app {
+ #[shared]
+ struct Shared {}
+
+ #[local]
+ struct Local {}
+
+ #[init]
+ fn init(_: init::Context) -> ! {}
+}