]> git.lizzy.rs Git - rust.git/commitdiff
Detect closures assigned to binding in block
authorEsteban Küber <esteban@kuber.com.ar>
Thu, 5 Jan 2023 21:29:36 +0000 (21:29 +0000)
committerEsteban Küber <esteban@kuber.com.ar>
Thu, 5 Jan 2023 21:29:36 +0000 (21:29 +0000)
Fix #58497.

tests/target/issue_4110.rs

index 4a58c3946e12dae2c3ac6c441c60bc5c9b8b6f1f..d3734e90b7ffa97c47633d0a0b6909356ea26160 100644 (file)
@@ -20,6 +20,7 @@ fn bindings() {
                 category,
                 span,
                 &format!("`{}`", name),
+                "function",
             ),
         (
             ref name,