mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 12:20:37 +00:00
Mention ! in diagnostic
This commit is contained in:
parent
dbff432e19
commit
b06a708f81
@ -70,7 +70,7 @@ pub mod _export {
|
||||
impl TaskReturnValue for Never {}
|
||||
|
||||
#[diagnostic::on_unimplemented(
|
||||
message = "task function futures must resolve to `()`",
|
||||
message = "task futures must resolve to `()` or `!`",
|
||||
note = "use `async fn` or change the return type to `impl Future<Output = ()>`"
|
||||
)]
|
||||
#[allow(private_bounds)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user