From 08c4fbcea7c3aebdee6ed2fb6c436385f2d60e3c Mon Sep 17 00:00:00 2001 From: Chris Pardy Date: Wed, 17 Mar 2021 02:51:27 -0400 Subject: Closure capture borrow diagnostics for disjoint captures --- src/test/ui/error-codes/E0504.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/ui/error-codes') diff --git a/src/test/ui/error-codes/E0504.stderr b/src/test/ui/error-codes/E0504.stderr index 1f2a0407a39..04811721aa5 100644 --- a/src/test/ui/error-codes/E0504.stderr +++ b/src/test/ui/error-codes/E0504.stderr @@ -7,7 +7,7 @@ LL | LL | let x = move || { | ^^^^^^^ move out of `fancy_num` occurs here LL | println!("child function: {}", fancy_num.num); - | --------- move occurs due to use in closure + | ------------- move occurs due to use in closure ... LL | println!("main function: {}", fancy_ref.num); | ------------- borrow later used here -- cgit 1.4.1-3-g733a5