]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-block-unint.stderr
Auto merge of #101768 - sunfishcode:sunfishcode/wasi-stdio-lock-asfd, r=joshtriplett
[rust.git] / src / test / ui / borrowck / borrowck-block-unint.stderr
index e720db1c6961b275b230d4daf985a8a67ba3e83e..f47921a97526906737dfc035c6b64421b23f353c 100644 (file)
@@ -7,6 +7,11 @@ LL |     force(|| {
    |           ^^ `x` used here but it isn't initialized
 LL |         println!("{}", x);
    |                        - borrow occurs due to use in closure
+   |
+help: consider assigning a value
+   |
+LL |     let x: isize = 0;
+   |                  +++
 
 error: aborting due to previous error