We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
where
1 parent 356c507 commit 8c3931bCopy full SHA for 8c3931b
crates/parser/src/grammar/items.rs
@@ -290,12 +290,17 @@ fn type_alias(p: &mut Parser, m: Marker) {
290
generic_params::bounds(p);
291
}
292
293
- // test type_item_where_clause
+ // test type_item_where_clause_deprecated
294
// type Foo where Foo: Copy = ();
295
generic_params::opt_where_clause(p);
296
if p.eat(T![=]) {
297
types::type_(p);
298
299
+
300
+ // test type_item_where_clause
301
+ // type Foo = () where Foo: Copy;
302
+ generic_params::opt_where_clause(p);
303
304
p.expect(T![;]);
305
m.complete(p, TYPE_ALIAS);
306
0 commit comments