The todo!
macro does not play well with RPIT
#121449
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
Function
foo
fails to compile, whilebar
is ok. The compiler reports the following error:I'm using
rustc
1.76.0, however, the nightly version (2024-02-21 3406ada) also produces the same error.PS: It's the same result for returning
impl Future
and async functions, I think it might be the same problem (in the following code,foo
fails to compile, whilebar
is ok):The text was updated successfully, but these errors were encountered: