1 #[warn(clippy::eval_order_dependence)]
5 clippy::many_single_char_names,
8 clippy::blacklisted_name
17 // Example from iss#277
23 // Does it work in weird places?
24 // ...in the base for a struct expression?
29 let base = Foo { a: 4, b: 5 };
37 // ...inside a closure?
45 // ...not across a closure?
47 let b = (y, || y = 1);
49 // && and || evaluate left-to-right.
59 // Make sure we don't get confused by alpha conversion.
66 // No warning if we don't read the variable...
71 // ...if the assignment is in a closure...
78 // ... or the access is under an address.
90 // Limitation: l-values other than simple variables don't trigger
97 // Limitation: you can get away with a read under address-of.