mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
![]() New warning introduced in nightly rust ``` error: use of a double negation --> /home/runner/work/slint/slint/target/debug/build/test-driver-rust-805d926ab786688f/out/expr_arithmetic.rs:10:55 | 10 | assert_eq!(instance.get_t4(), 3 + - 5 - 8 - -9 * --- 120); | ^^^^^^ | = note: the prefix `--` could be misinterpreted as a decrement operator which exists in other languages = note: use `-= 1` if you meant to decrement the value help: add parentheses for clarity | 10 | assert_eq!(instance.get_t4(), 3 + - 5 - 8 - -9 * --(- 120)); | ``` |
||
---|---|---|
.. | ||
cpp.rs | ||
rust.rs |