We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 513f357 commit 16d12b4Copy full SHA for 16d12b4
src/rust-2021/disjoint-capture-in-closures.md
@@ -40,7 +40,7 @@ When running `cargo fix --edition`, Cargo will update the closures in your code
40
Whenever any of the scenarios below are detected, `cargo fix` will insert a "dummy let" into your closure to force it to capture the entire variable:
41
42
```rust
43
-let x = (vec![], vec![]);
+let x = (vec![22], vec![23]);
44
let c = move || {
45
// "Dummy let" that forces `x` to be captured in its entirety
46
let _ = &x;
0 commit comments