fix example for E0644
This commit is contained in:
parent
df6fdbc9ae
commit
2151e482ac
1 changed files with 2 additions and 3 deletions
|
|
@ -1982,10 +1982,9 @@ fn fix<F>(f: &F)
|
|||
}
|
||||
|
||||
fn main() {
|
||||
let x = |y| {
|
||||
fix(&|y| {
|
||||
// Here, when `x` is called, the parameter `y` is equal to `x`.
|
||||
};
|
||||
fix(&x);
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue