diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 9b0483d00a44..fe3f1bbbe8c4 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -1982,10 +1982,9 @@ fn fix(f: &F) } fn main() { - let x = |y| { + fix(&|y| { // Here, when `x` is called, the parameter `y` is equal to `x`. - }; - fix(&x); + }); } ```