diff options
Diffstat (limited to 'macros/ui/local-shared-attribute.rs')
-rw-r--r-- | macros/ui/local-shared-attribute.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/macros/ui/local-shared-attribute.rs b/macros/ui/local-shared-attribute.rs new file mode 100644 index 00000000..1ccce4ad --- /dev/null +++ b/macros/ui/local-shared-attribute.rs @@ -0,0 +1,14 @@ +#![no_main] + +#[rtic_macros::mock_app(device = mock)] +mod app { + #[task(local = [ + #[test] + a: u32 = 0, // Ok + #[test] + b, // Error + ])] + fn foo(_: foo::Context) { + + } +} |