diff options
author | Matthew Jasper <[email protected]> | 2020-06-11 18:15:03 +0100 |
---|---|---|
committer | Matthew Jasper <[email protected]> | 2020-06-11 18:15:03 +0100 |
commit | 8622e4cc1b79f5d23b8a2c6610d749f5b987ea7e (patch) | |
tree | d02ec5f590c2d35059e949c580bf7dd3cb053fcb /crates/ra_parser/src/grammar | |
parent | 879693e63c19b474153473e11f96ab9c321739db (diff) |
Add example of old trait object syntax
Diffstat (limited to 'crates/ra_parser/src/grammar')
-rw-r--r-- | crates/ra_parser/src/grammar/types.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_parser/src/grammar/types.rs b/crates/ra_parser/src/grammar/types.rs index 63dd3774f..9e8e3bd97 100644 --- a/crates/ra_parser/src/grammar/types.rs +++ b/crates/ra_parser/src/grammar/types.rs | |||
@@ -217,6 +217,7 @@ pub(super) fn for_binder(p: &mut Parser) { | |||
217 | // test for_type | 217 | // test for_type |
218 | // type A = for<'a> fn() -> (); | 218 | // type A = for<'a> fn() -> (); |
219 | // type B = for<'a> unsafe extern "C" fn(&'a ()) -> (); | 219 | // type B = for<'a> unsafe extern "C" fn(&'a ()) -> (); |
220 | // type Obj = for<'a> PartialEq<&'a i32>; | ||
220 | pub(super) fn for_type(p: &mut Parser) { | 221 | pub(super) fn for_type(p: &mut Parser) { |
221 | assert!(p.at(T![for])); | 222 | assert!(p.at(T![for])); |
222 | let m = p.start(); | 223 | let m = p.start(); |