about summary refs log tree commit diff
path: root/tests/ui/loops
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-04-10 20:01:20 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-04-10 20:36:14 +0000
commite17388b8097e48d25ccdde4cf5738d73b9a38052 (patch)
tree8d43e9889643cdd62e867938ef58966fc1458fee /tests/ui/loops
parenta983dd8563be66b049a7bf26c60fca41ed41a111 (diff)
downloadrust-e17388b8097e48d25ccdde4cf5738d73b9a38052.tar.gz
rust-e17388b8097e48d25ccdde4cf5738d73b9a38052.zip
Handle more cases of value suggestions
Diffstat (limited to 'tests/ui/loops')
-rw-r--r--tests/ui/loops/loop-proper-liveness.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/loops/loop-proper-liveness.stderr b/tests/ui/loops/loop-proper-liveness.stderr
index bcd6eb353e5..cd4c064bcd1 100644
--- a/tests/ui/loops/loop-proper-liveness.stderr
+++ b/tests/ui/loops/loop-proper-liveness.stderr
@@ -10,8 +10,8 @@ LL |     println!("{:?}", x);
    = 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: i32 = 0;
-   |                +++
+LL |     let x: i32 = 42;
+   |                ++++
 
 error: aborting due to 1 previous error