]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/disamb-stmt-expr.rs
5f9d57f94a732b693bd50a04b9d82ab8d814fa95
[rust.git] / src / test / pretty / disamb-stmt-expr.rs
1 // pp-exact
2
3 // Here we check that the parentheses around the body of `wsucc()` are
4 // preserved.  They are needed to disambiguate `{ret n+1}; - 0` from
5 // `({ret n+1}-0)`.
6
7 fn wsucc(n: int) -> int { ({ ret n + 1 } - 0); }
8 fn main() { }