async_fn_in_trait: return type of method impl is not checked in default bodies #103352
Labels
C-bug
Category: This is a bug.
F-async_fn_in_trait
Static async fn in traits
F-return_position_impl_trait_in_trait
`#![feature(return_position_impl_trait_in_trait)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Here's a MVCE:
Playground link
I expected to see this happen: compilation fails because I'm clearly returning an
{integer}
instead of aString
Instead, this happened: bad codegen ("async fn resumed after completion")
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: