]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-storage-dead.stderr
Auto merge of #101768 - sunfishcode:sunfishcode/wasi-stdio-lock-asfd, r=joshtriplett
[rust.git] / src / test / ui / borrowck / borrowck-storage-dead.stderr
index 2cea4392d6adb63b03ddfd8e06b6c2ea90bbebef..3a413153acd19c39ec2068ad75ef438aedde7648 100644 (file)
@@ -5,6 +5,11 @@ LL |         let x: i32;
    |             - binding declared here but left uninitialized
 LL |         let _ = x + 1;
    |                 ^ `x` used here but it isn't initialized
+   |
+help: consider assigning a value
+   |
+LL |         let x: i32 = 0;
+   |                    +++
 
 error: aborting due to previous error