Guest User

Untitled

a guest
Jun 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #![allow(unknown_lints, unused_assignments)]
  2. #![deny(clippy)]
  3.  
  4. fn main() {
  5. let mut a = 0;
  6. a = a + 1; // error: assign_op_pattern lint (warn-by-default)
  7. a += 1; // no-error: assign_ops lint (allow-by-default)
  8. }
Add Comment
Please, Sign In to add comment