Bounds in for<...> are ignored #40486
Labels
A-type-system
Area: Type system
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When writing
for<'a : 'b> fn(...) -> ...
, the constraint'a : 'b
is completely ignored by borrowcheck.This makes it possible to write the following function, which is weird:
The text was updated successfully, but these errors were encountered: