aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/ui/local-collision.rs
blob: 0e4eef720cb0de6f369b99de023646e1656e5536 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#![no_main]

#[rtic_macros::mock_app(device = mock)]
mod app {
    #[shared]
    struct Shared {}

    #[local]
    struct Local {
        a: u32,
    }

    #[task(local = [a])]
    async fn foo(_: foo::Context) {}

    #[task(local = [a: u8 = 3])]
    async fn bar(_: bar::Context) {}

    #[init]
    fn init(_: init::Context) -> (Shared, Local) {}
}