aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar
diff options
context:
space:
mode:
authorMatthew Jasper <[email protected]>2020-06-11 18:15:03 +0100
committerMatthew Jasper <[email protected]>2020-06-11 18:15:03 +0100
commit8622e4cc1b79f5d23b8a2c6610d749f5b987ea7e (patch)
treed02ec5f590c2d35059e949c580bf7dd3cb053fcb /crates/ra_parser/src/grammar
parent879693e63c19b474153473e11f96ab9c321739db (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.rs1
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>;
220pub(super) fn for_type(p: &mut Parser) { 221pub(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();