verus-lang / verus

Verified Rust for low-level systems code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parse error with FnOnce returning unit

tjhance opened this issue · comments

The verus macro can't parse this:

verus!{

fn stuff<T: FnOnce(u8) -> ()>() { }

}

Seems fine for other types, even other tuple types. Just the unit type that fails.