2011-12-29 14:03:39 -06:00
|
|
|
// pp-exact
|
|
|
|
|
|
|
|
// Here we check that the parentheses around the body of `wsucc()` are
|
2012-08-01 19:30:05 -05:00
|
|
|
// preserved. They are needed to disambiguate `{return n+1}; - 0` from
|
|
|
|
// `({return n+1}-0)`.
|
2011-12-29 14:03:39 -06:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
fn id<F>(f: F) -> isize where F: Fn() -> isize { f() }
|
2012-04-07 19:11:33 -05:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
fn wsucc(_n: isize) -> isize { id(|| { 1 }) - 0 }
|
2021-12-01 13:45:14 -06:00
|
|
|
fn main() {}
|