aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/ui/task-no-prio.stderr
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2023-05-10 14:24:32 +0200
committerEmil Fresk <emil.fresk@gmail.com>2023-05-10 16:26:52 +0200
commit67d5ade4fdbb2fb4a1c13715e4829412f4007d75 (patch)
treed724871c3173736594811daa84abbd57b71bf105 /rtic-macros/ui/task-no-prio.stderr
parentcfac6d1d90f13f22bde849816919e42f4ecf9531 (diff)
Fix zero prio tasks when all async tasks have default (no) arguments
Diffstat (limited to 'rtic-macros/ui/task-no-prio.stderr')
-rw-r--r--rtic-macros/ui/task-no-prio.stderr5
1 files changed, 5 insertions, 0 deletions
diff --git a/rtic-macros/ui/task-no-prio.stderr b/rtic-macros/ui/task-no-prio.stderr
new file mode 100644
index 0000000..4ff97ec
--- /dev/null
+++ b/rtic-macros/ui/task-no-prio.stderr
@@ -0,0 +1,5 @@
+error: Async task "task1" has priority 0, but `#[idle]` is defined. 0-priority async tasks are only allowed if there is no `#[idle]`.
+ --> ui/task-no-prio.rs:18:14
+ |
+18 | async fn task1(_: task1::Context) {}
+ | ^^^^^