E0051

E0051#

Ambiguous operator precedence.

Some operators have non-intuitive precedence and can lead to confusion. Always use parentheses to make the intent clearer in these cases.

错误示例#

///|
pub fn f() -> Int {
  1 + 2 << 3
}

建议#

Add parentheses to make the intent clearer.

///|
pub fn f() -> Int {
  (1 + 2) << 3
}