blob: f00fbc363d488c9f6845aae694f55299c9d4e8e8 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![allow(unused_must_use)]
pub fn main() {
// Test that lambdas behave as unary expressions with block-like expressions
-if true { 1 } else { 2 } * 3;
|| if true { 1 } else { 2 } * 3;
// The following is invalid and parses as `if true { 1 } else { 2 }; *3`
// if true { 1 } else { 2 } * 3
}
|