mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Add example of old trait object syntax
This commit is contained in:
parent
879693e63c
commit
8622e4cc1b
3 changed files with 39 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue