]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-break-uninit-2.stderr
Rollup merge of #99460 - JanBeh:PR_asref_asmut_docs, r=joshtriplett
[rust.git] / src / test / ui / borrowck / borrowck-break-uninit-2.stderr
index 91038b3adca9d0f8dcab38064738bf47cdbe84d6..ea93a8f409ce41555c4a5869e205183734f05723 100644 (file)
@@ -8,6 +8,10 @@ LL |     println!("{}", x);
    |                    ^ `x` used here but it isn't initialized
    |
    = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
+help: consider assigning a value
+   |
+LL |     let x: isize = 0;
+   |                  +++
 
 error: aborting due to previous error