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