This gives unexpected token on the ==. But if you change foo to use explicit return, with a semicolon after it, or if you put the binary equals expression inside of an assert, it appears to work fine.
fn foo() -> bool {
{ true } == true
}
fn main() {}