]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-break-uninit.stderr
Rollup merge of #99460 - JanBeh:PR_asref_asmut_docs, r=joshtriplett
[rust.git] / src / test / ui / borrowck / borrowck-break-uninit.stderr
index 8d0c9582fda9259fd87d3513122d9792aaf695f8..a7a8fc2ff837890665c04ee1681da34c5f020ccb 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