diff options
author | 2023-01-08 16:25:46 +0100 | |
---|---|---|
committer | 2023-03-01 00:33:27 +0100 | |
commit | 584ac7e1b335411e3d923aeef92466efdc92ae50 (patch) | |
tree | 99906bccb37bfe7e852d054fb52d62e6df4290c5 /macros/ui/local-shared-attribute.rs | |
parent | 9a4f97ca5ebf19e6612115db5c763d0d61dd28a1 (diff) | |
download | rtic-584ac7e1b335411e3d923aeef92466efdc92ae50.tar.gz rtic-584ac7e1b335411e3d923aeef92466efdc92ae50.tar.zst rtic-584ac7e1b335411e3d923aeef92466efdc92ae50.zip |
Update UI tests, 1 failing that needs fixing
Diffstat (limited to 'macros/ui/local-shared-attribute.rs')
-rw-r--r-- | macros/ui/local-shared-attribute.rs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/macros/ui/local-shared-attribute.rs b/macros/ui/local-shared-attribute.rs index 1ccce4ad..c594b5f6 100644 --- a/macros/ui/local-shared-attribute.rs +++ b/macros/ui/local-shared-attribute.rs @@ -2,13 +2,20 @@ #[rtic_macros::mock_app(device = mock)] mod app { + #[shared] + struct Shared {} + + #[local] + struct Local {} + + #[init] + fn init(_: init::Context) -> (Shared, Local) {} + #[task(local = [ #[test] a: u32 = 0, // Ok #[test] b, // Error ])] - fn foo(_: foo::Context) { - - } + fn foo(_: foo::Context) {} } |