mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 12:55:23 +01:00
chore: update tests
This commit is contained in:
parent
78e9127fc5
commit
0593a7290b
6 changed files with 4 additions and 18 deletions
|
|
@ -1,9 +0,0 @@
|
|||
#![no_main]
|
||||
|
||||
#[rtic_macros::mock_app(device = mock)]
|
||||
mod app {
|
||||
#[task]
|
||||
async fn foo(_: foo::Context) -> ! {
|
||||
loop {}
|
||||
}
|
||||
}
|
||||
|
|
@ -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) -> ! {
|
||||
| ^^^
|
||||
|
|
@ -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() {}
|
||||
|
|
|
|||
|
|
@ -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) {}
|
||||
|
|
|
|||
|
|
@ -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) {}
|
||||
|
|
|
|||
|
|
@ -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) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue