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
I am pretty new to rust, but the following issue confuses me.
Assume that we have a trait A.
For defining structs we have the following syntax: struct Foo<Bar: A> {...}
but when writing implementations we write: impl<Bar: A> Foo<Bar>{...}
Is it possible to introduce a new syntax for impl? Like: impl Foo<Bar: A> {...}
which would just desugar to the above implementation?
The first implementation syntax seems inconsistent with the struct syntax.
The text was updated successfully, but these errors were encountered:
I am pretty new to rust, but the following issue confuses me.
Assume that we have a trait A.
For defining structs we have the following syntax:
struct Foo<Bar: A> {...}
but when writing implementations we write:
impl<Bar: A> Foo<Bar>{...}
Is it possible to introduce a new syntax for impl? Like:
impl Foo<Bar: A> {...}
which would just desugar to the above implementation?
The first implementation syntax seems inconsistent with the struct syntax.
The text was updated successfully, but these errors were encountered: