3 #[warn(clippy::eval_order_dependence)]
7 clippy::many_single_char_names,
10 clippy::blacklisted_name
19 // Example from iss#277
25 // Does it work in weird places?
26 // ...in the base for a struct expression?
31 let base = Foo { a: 4, b: 5 };
39 // ...inside a closure?
47 // ...not across a closure?
49 let b = (y, || y = 1);
51 // && and || evaluate left-to-right.
61 // Make sure we don't get confused by alpha conversion.
68 // No warning if we don't read the variable...
73 // ...if the assignment is in a closure...
80 // ... or the access is under an address.
92 // Limitation: l-values other than simple variables don't trigger
99 // Limitation: you can get away with a read under address-of.
113 async fn issue_6925() {
114 let _ = vec![async { true }.await, async { false }.await];