You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foo.rs:7:28: 7:37 error: to use region types here, the containing type must be declared with a region bound
foo.rs:7 pub trait MutableMap<K, V>: Map<K, V> {
^~~~~~~~~
error: aborting due to previous error
I'm not quite sure what to do in this case. Is this an error? If not, how do I pass a region bound to a parent trait?
The text was updated successfully, but these errors were encountered:
That is, region parameterization inference. It is not aware of supertraits. However, I am reluctant to try and fix it because we plan to make all these region parameters more explicit. Also, I think that in this case the trait should not be region-parameterized anyhow.
The first bug should be fixed now (dup of #5225), the second bug (region parameterization inference doesn't consider trait inheritance) I don't plan to fix since I plan to remove RPI.
See this code:
It fails with:
I'm not quite sure what to do in this case. Is this an error? If not, how do I pass a region bound to a parent trait?
The text was updated successfully, but these errors were encountered: