rust/tests/data/parser/ok/0028_operator_binding_power.rs
2018-08-07 14:24:03 +03:00

14 lines
248 B
Rust

fn binding_power() {
let x = 1 + 2 * 3 % 4 - 5 / 6;
1 + 2 * 3;
1 << 2 + 3;
1 & 2 >> 3;
1 ^ 2 & 3;
1 | 2 ^ 3;
1 == 2 | 3;
1 && 2 == 3;
//1 || 2 && 2;
//1 .. 2 || 3;
//1 = 2 .. 3;
//---&*1 - --2 * 9;
}