mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 21:01:06 +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 {}
|
impl TaskReturnValue for Never {}
|
||||||
|
|
||||||
#[diagnostic::on_unimplemented(
|
#[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 = ()>`"
|
note = "use `async fn` or change the return type to `impl Future<Output = ()>`"
|
||||||
)]
|
)]
|
||||||
#[allow(private_bounds)]
|
#[allow(private_bounds)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user