chore: update tests

This commit is contained in:
Oleksandr Babak 2025-03-22 12:25:45 +01:00 committed by Emil Fresk
parent 78e9127fc5
commit 0593a7290b
6 changed files with 4 additions and 18 deletions

View file

@ -1,9 +0,0 @@
#![no_main]
#[rtic_macros::mock_app(device = mock)]
mod app {
#[task]
async fn foo(_: foo::Context) -> ! {
loop {}
}
}

View file

@ -1,5 +0,0 @@
error: this task handler must have type signature `async fn(foo::Context, ..)`
--> ui/task-divergent.rs:6:14
|
6 | async fn foo(_: foo::Context) -> ! {
| ^^^

View file

@ -1,4 +1,4 @@
error: this task handler must have type signature `async fn(foo::Context, ..)`
error: this task handler must have type signature `async fn(foo::Context, ..)` or `async fn(foo::Context, ..) -> !`
--> ui/task-no-context.rs:6:14
|
6 | async fn foo() {}

View file

@ -1,4 +1,4 @@
error: this task handler must have type signature `async fn(foo::Context, ..)`
error: this task handler must have type signature `async fn(foo::Context, ..)` or `async fn(foo::Context, ..) -> !`
--> ui/task-pub.rs:6:18
|
6 | pub async fn foo(_: foo::Context) {}

View file

@ -1,4 +1,4 @@
error: this task handler must have type signature `async fn(foo::Context, ..)`
error: this task handler must have type signature `async fn(foo::Context, ..)` or `async fn(foo::Context, ..) -> !`
--> ui/task-unsafe.rs:6:21
|
6 | async unsafe fn foo(_: foo::Context) {}

View file

@ -1,4 +1,4 @@
error: this task handler must have type signature `async fn(foo::Context, ..)`
error: this task handler must have type signature `async fn(foo::Context, ..)` or `async fn(foo::Context, ..) -> !`
--> ui/task-zero-prio.rs:15:8
|
15 | fn foo(_: foo::Context) {}