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
WhereClause is permitted to be empty (i.e. a bare where) in baseline Rust. The following statements all compile:
struct Struct where {
}
enum Enum where {
}
type TypeAlias where = Struct;
trait Trait where {
}
fn function() where {
}
impl Struct where {
}
impl Trait for Struct where {
}
In the Ferrocene spec, 12.2 "Where Clauses" specifies that a WhereClause contains a WhereClausePredicateList which must be a non-empty list. However, Rust permits an empty list (which has the same effect as if where was not specified at all). The specification should probably be amended to reflect the actual grammar.
The text was updated successfully, but these errors were encountered:
WhereClause
is permitted to be empty (i.e. a barewhere
) in baseline Rust. The following statements all compile:In the Ferrocene spec, 12.2 "Where Clauses" specifies that a
WhereClause
contains aWhereClausePredicateList
which must be a non-empty list. However, Rust permits an empty list (which has the same effect as ifwhere
was not specified at all). The specification should probably be amended to reflect the actual grammar.The text was updated successfully, but these errors were encountered: