-#![feature(plugin)]
-#![plugin(clippy)]
-
-#![allow(dead_code)]
-#![allow(single_match)]
-#![allow(unused_variables, similar_names)]
-#![deny(blacklisted_name)]
+#![allow(
+ dead_code,
+ clippy::similar_names,
+ clippy::single_match,
+ clippy::toplevel_ref_arg,
+ unused_mut,
+ unused_variables
+)]
+#![warn(clippy::blacklisted_name)]
fn test(foo: ()) {}
match (42, Some(1337), Some(0)) {
(foo, Some(bar), baz @ Some(_)) => (),
+ _ => (),
+ }
+}
+fn issue_1647(mut foo: u8) {
+ let mut bar = 0;
+ if let Some(mut baz) = Some(42) {}
+}
+fn issue_1647_ref() {
+ let ref bar = 0;
+ if let Some(ref baz) = Some(42) {}
+}
- _ => (),
- }
+fn issue_1647_ref_mut() {
+ let ref mut bar = 0;
+ if let Some(ref mut baz) = Some(42) {}
}