epfl-lara / rust-stainless

An experimental Rust frontend for Stainless
Apache License 2.0
6 stars 2 forks source link

Postcondition macro crashes when used on functions with no parameters #132

Closed yannbolliger closed 3 years ago

yannbolliger commented 3 years ago

Adding a postcondition to a function without any parameters crashes the macro:

#[post(ret)]
fn test() -> bool { true }