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