]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/mir/drop-elaboration-after-borrowck-error.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / mir / drop-elaboration-after-borrowck-error.stderr
index 80d5fc7ec672c0df12754c3e0f8aa0a32b40d654..d8154f8d2cbc40ad33d0340fc660c2f19751d724 100644 (file)
@@ -16,11 +16,14 @@ LL |     let a: [String; 1];
 LL | };
    | - value is dropped here
 
-error[E0381]: use of possibly-uninitialized variable: `a`
+error[E0381]: used binding `a` isn't initialized
   --> $DIR/drop-elaboration-after-borrowck-error.rs:7:5
    |
+LL |     let a: [String; 1];
+   |         - binding declared here but left uninitialized
+LL |
 LL |     a[0] = String::new();
-   |     ^^^^ use of possibly-uninitialized `a`
+   |     ^^^^ `a` used here but it isn't initialized
 
 error[E0493]: destructors cannot be evaluated at compile-time
   --> $DIR/drop-elaboration-after-borrowck-error.rs:18:9