"implementation is not general enough" even if only 'static
is used.
#136726
Labels
A-async-await
Area: Async & Await
A-borrow-checker
Area: The borrow checker
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Check fast/fastimer#22 as a small reproduction.
I expected to see this happen:
Since the trait
MakeDelay
is implemented for&'static MakeTokioDelay
and the use point can ensure that only&'static MakeTokioDelay
is used, it should compiled.Actually, with the tricky workaround to eliminate
'static
in type (but still in field), the compiler is happy to compile the code.Instead, this happened:
Meta
rustc --version --verbose
:Can reproduce with:
Backtrace
The text was updated successfully, but these errors were encountered: