Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unknown_lints, unused_assignments)]
- #![deny(clippy)]
- fn main() {
- let mut a = 0;
- a = a + 1; // error: assign_op_pattern lint (warn-by-default)
- a += 1; // no-error: assign_ops lint (allow-by-default)
- }
Add Comment
Please, Sign In to add comment