Modify macro tests, use mod instead of const

This commit is contained in:
Henrik Tjäder 2020-05-26 13:48:43 +00:00
parent 0c7a619432
commit 2881cc8f43

View file

@ -8,7 +8,7 @@ fn analyze() {
let (app, analysis) = rtic_syntax::parse2(
quote!(device = pac),
quote!(
const APP: () = {
mod app {
#[task(priority = 1)]
fn a(_: a::Context) {}
@ -20,7 +20,7 @@ fn analyze() {
fn B();
fn A();
}
};
}
),
settings,
)