]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-return.stderr
Rollup merge of #102281 - RalfJung:invalid-enums, r=cjgillot
[rust.git] / src / test / ui / borrowck / borrowck-return.stderr
index 1c916e223175c8424185e4428b5816db996174a2..9799357c9ca1967a3e48b302dbe1f27965f85ad9 100644 (file)
@@ -5,6 +5,11 @@ LL |     let x: isize;
    |         - binding declared here but left uninitialized
 LL |     return x;
    |            ^ `x` used here but it isn't initialized
+   |
+help: consider assigning a value
+   |
+LL |     let x: isize = 0;
+   |                  +++
 
 error: aborting due to previous error