aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Tran <[email protected]>2025-05-29 05:54:25 -0500
committerMatthew Tran <[email protected]>2025-05-29 05:54:25 -0500
commitb06a708f81d208236763a121797807fd5b48aee6 (patch)
tree5b2f646db7e7d2baaef4e1d732a9a44f6035fda0
parentdbff432e19b326d7cef109bc4d2a0cd51260562d (diff)
Mention ! in diagnostic
-rw-r--r--embassy-executor/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-executor/src/lib.rs b/embassy-executor/src/lib.rs
index 70abfcc3a..e26e8ee7d 100644
--- a/embassy-executor/src/lib.rs
+++ b/embassy-executor/src/lib.rs
@@ -70,7 +70,7 @@ pub mod _export {
70 impl TaskReturnValue for Never {} 70 impl TaskReturnValue for Never {}
71 71
72 #[diagnostic::on_unimplemented( 72 #[diagnostic::on_unimplemented(
73 message = "task function futures must resolve to `()`", 73 message = "task futures must resolve to `()` or `!`",
74 note = "use `async fn` or change the return type to `impl Future<Output = ()>`" 74 note = "use `async fn` or change the return type to `impl Future<Output = ()>`"
75 )] 75 )]
76 #[allow(private_bounds)] 76 #[allow(private_bounds)]