]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-24036.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-24036.stderr
index 4622501f33edae7a823ab372401f1d233f1a7a19..a42e35c4cad5c922f526b92b65dd202b08612179 100644 (file)
@@ -2,12 +2,12 @@ error[E0308]: mismatched types
   --> $DIR/issue-24036.rs:3:9
    |
 LL |     let mut x = |c| c + 1;
-   |                 --------- the expected closure
+   |                 --- the expected closure
 LL |     x = |c| c + 1;
    |         ^^^^^^^^^ expected closure, found a different closure
    |
-   = note: expected closure `[closure@$DIR/issue-24036.rs:2:17: 2:26]`
-              found closure `[closure@$DIR/issue-24036.rs:3:9: 3:18]`
+   = note: expected closure `[closure@$DIR/issue-24036.rs:2:17: 2:20]`
+              found closure `[closure@$DIR/issue-24036.rs:3:9: 3:12]`
    = note: no two closures, even if identical, have the same type
    = help: consider boxing your closure and/or using it as a trait object