diff options
Diffstat (limited to 'macros/ui/local-collision.rs')
-rw-r--r-- | macros/ui/local-collision.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/ui/local-collision.rs b/macros/ui/local-collision.rs new file mode 100644 index 00000000..7dbe9764 --- /dev/null +++ b/macros/ui/local-collision.rs @@ -0,0 +1,21 @@ +#![no_main] + +#[rtic_macros::mock_app(device = mock)] +mod app { + #[shared] + struct Shared {} + + #[local] + struct Local { + a: u32, + } + + #[task(local = [a])] + fn foo(_: foo::Context) {} + + #[task(local = [a: u8 = 3])] + fn bar(_: bar::Context) {} + + #[init] + fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {} +} |