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
Change the syntax for traits for dynamically-sized types to have a prefix ? instead of a postfix one:
traitFoo for ?Sized{ ... }
Allow using this syntax in where clauses:
fnfoo<T>(x:&T)whereT: ?Sized{ ...}
Note that, if the parser is changed to accept this, type collection needs to be fixed to look at where clauses instead of just type param bounds when figuring out if a Sized bound should be added.
The text was updated successfully, but these errors were encountered:
Example: http://is.gd/rB5WGc
RFC 490 says this should be accepted: https://github.com/rust-lang/rfcs/blob/master/text/0490-dst-syntax.md#detailed-design
Note that, if the parser is changed to accept this, type collection needs to be fixed to look at
where
clauses instead of just type param bounds when figuring out if aSized
bound should be added.The text was updated successfully, but these errors were encountered: