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
The trait inheritance list is a list of type bounds, but for traits. These two constructs mean very similar, if not the same, things, 'in order for a type to be Foo it must be Bar'.
fn f<Foo: Bar>() { }
trait Foo: Bar { }
but the syntaxes suggest dissimilarity with more than one bound:
fn f<Foo: Bar Baz>() { }
trait Foo: Bar, Baz { }
Using space instead of comma in the trait declaration would be more consistent and looks fine.
fn f<Foo: Bar Baz>() { }
trait Foo: Bar Baz { }
The text was updated successfully, but these errors were encountered:
The trait inheritance list is a list of type bounds, but for traits. These two constructs mean very similar, if not the same, things, 'in order for a type to be Foo it must be Bar'.
but the syntaxes suggest dissimilarity with more than one bound:
Using space instead of comma in the trait declaration would be more consistent and looks fine.
The text was updated successfully, but these errors were encountered: