Skip to content

Commit 2151e48

Browse files
committed
fix example for E0644
1 parent df6fdbc commit 2151e48

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc/diagnostics.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,10 +1982,9 @@ fn fix<F>(f: &F)
19821982
}
19831983
19841984
fn main() {
1985-
let x = |y| {
1985+
fix(&|y| {
19861986
// Here, when `x` is called, the parameter `y` is equal to `x`.
1987-
};
1988-
fix(&x);
1987+
});
19891988
}
19901989
```
19911990

0 commit comments

Comments
 (0)