Skip to content

Commit 97d7d53

Browse files
committed
Wrap async fn error message
1 parent d58307a commit 97d7d53

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

syntax/parse.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,10 @@ fn parse_extern_fn(
565565
if foreign_fn.sig.asyncness.is_some() {
566566
return Err(Error::new_spanned(
567567
foreign_fn,
568-
"async function is not directly supported yet, but see https://cxx.rs/async.html for a working approach, and https://github.com/pcwalton/cxx-async for some helpers; eventually what you wrote will work but it isn't integrated into the cxx::bridge macro yet",
568+
"async function is not directly supported yet, but see https://cxx.rs/async.html \
569+
for a working approach, and https://github.com/pcwalton/cxx-async for some helpers; \
570+
eventually what you wrote will work but it isn't integrated into the cxx::bridge \
571+
macro yet",
569572
));
570573
}
571574

0 commit comments

Comments
 (0)