Inconsistent syntax between unsafe async fn
and async fn unsafe
#62232
Labels
A-async-await
Area: Async & Await
A-grammar
Area: The grammar of Rust
A-parser
Area: The parsing of Rust source code to an AST
AsyncAwait-Polish
Async-await issues that are part of the "polish" area
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
There is an inconsistency in the ordering of
async
andunsafe
keywords that come before the fn signature. A plain function signature requiresasync unsafe fn
, whereas a method signature requiresunsafe async fn
:unsafe async fn
toasync unsafe fn
#61319.The text was updated successfully, but these errors were encountered: