Mention ! in diagnostic

This commit is contained in:
Matthew Tran 2025-05-29 05:54:25 -05:00
parent dbff432e19
commit b06a708f81

View File

@ -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)]