RPIT associated type lifetime bound is ignored #135006
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expect it to compile, but instead it gives the following error:
It looks like the
Out: 'static
bound onmake_static_foo
is just ignored.The issue sounds similar to #106684, but it is actually the opposite:
In this issue the bound is in the RPIT instead of in the trait definition.
Meta
rustc --version --verbose
:Same happens on stable
The text was updated successfully, but these errors were encountered: