Add example of old trait object syntax

This commit is contained in:
Matthew Jasper 2020-06-11 18:15:03 +01:00
parent 879693e63c
commit 8622e4cc1b
3 changed files with 39 additions and 1 deletions

View file

@ -217,6 +217,7 @@ pub(super) fn for_binder(p: &mut Parser) {
// test for_type
// type A = for<'a> fn() -> ();
// type B = for<'a> unsafe extern "C" fn(&'a ()) -> ();
// type Obj = for<'a> PartialEq<&'a i32>;
pub(super) fn for_type(p: &mut Parser) {
assert!(p.at(T![for]));
let m = p.start();