]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/borrowck-storage-dead.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-storage-dead.stderr
index 5b9f49c2e7c920ad80620ad263b26e4089c3cf15..3a413153acd19c39ec2068ad75ef438aedde7648 100644 (file)
@@ -1,8 +1,15 @@
-error[E0381]: use of possibly uninitialized variable: `x`
+error[E0381]: used binding `x` isn't initialized
   --> $DIR/borrowck-storage-dead.rs:16:17
    |
+LL |         let x: i32;
+   |             - binding declared here but left uninitialized
 LL |         let _ = x + 1;
-   |                 ^ use of possibly uninitialized `x`
+   |                 ^ `x` used here but it isn't initialized
+   |
+help: consider assigning a value
+   |
+LL |         let x: i32 = 0;
+   |                    +++
 
 error: aborting due to previous error