fix example for E0644

This commit is contained in:
Niko Matsakis 2017-11-20 13:34:24 -05:00
parent df6fdbc9ae
commit 2151e482ac

View file

@ -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);
});
}
```