Reduce the number of constraints repeated when writing T: SomeTrait#1927
Reduce the number of constraints repeated when writing T: SomeTrait#1927sgrif wants to merge 1 commit intorust-lang:masterfrom
T: SomeTrait#1927Conversation
6dee359 to
79b121f
Compare
|
There is a rustc bug on this issue as well: I am generally in favor of this change. I have to give the RFC a detailed read. I am not sure if there are backwards compatibility concerns -- if so I would expect them to arise only in corner cases, but still worth considering. |
|
Why leave the several exceptions where supertrait bounds would not be inherited? It seems less confusing to inherit everything. In particular I don't understand the difference between |
|
When it says that trait A {
type Foo: X;
}
trait B: A where <Self as A>::Foo: Y {}Would claiming |
|
@nikomatsakis Any thoughts on this? Are you inclined to subsume this under a more general implied bounds RFC? Can we mentor someone to write that? |
Rendered