Skip to content

Parsing support for generic associated types #141

@zhengyao-lin

Description

@zhengyao-lin

verusfmt doesn't seem to be parsing this correctly

impl<'a, T: DeepView> ExecSpecEq<'a> for &'a Option<T> where
    &'a T: for <'c> ExecSpecEq<'a, Other<'c> = &'c T>,
{
    type Other<'b> = &'a Option<T>;

    ...
}
Error: 
  × Failed to parse
     ╭─[vstd/exec_spec/mod.rs:147:46]
 146 │ impl<'a, T: DeepView> ExecSpecEq<'a> for &'a Option<T> where
 147 │     &'a T: for <'c> ExecSpecEq<'a, Other<'c> = &'c T>,
     ·                                              ┬
     ·                                              ╰── here
 148 │ {
     ╰────
  help: Expected one of: COMMENT, bang_str, colons_str, rangle_str

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions