Skip to content

Commit

Permalink
Wrap async fn error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 19, 2022
1 parent d58307a commit 97d7d53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syntax/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,10 @@ fn parse_extern_fn(
if foreign_fn.sig.asyncness.is_some() {
return Err(Error::new_spanned(
foreign_fn,
"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",
"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",
));
}

Expand Down

0 comments on commit 97d7d53

Please sign in to comment.