@@ -7,7 +7,7 @@ LL | demo = 1;
77help: you might have meant to introduce a new binding
88 |
99LL | let demo = 1;
10- | +++
10+ | ~~~~~~~~
1111
1212error[E0425]: cannot find value `demo` in this scope
1313 --> $DIR/suggest-let-for-assignment.rs:5:10
@@ -24,37 +24,71 @@ LL | x = "x";
2424help: you might have meant to introduce a new binding
2525 |
2626LL | let x = "x";
27- | +++
27+ | ~~~~~
2828
2929error[E0425]: cannot find value `x` in this scope
3030 --> $DIR/suggest-let-for-assignment.rs:8:23
3131 |
3232LL | println!("x: {}", x);
3333 | ^ not found in this scope
3434
35+ error[E0425]: cannot find value `let_some_variable` in this scope
36+ --> $DIR/suggest-let-for-assignment.rs:10:5
37+ |
38+ LL | let_some_variable = 6;
39+ | ^^^^^^^^^^^^^^^^^
40+ |
41+ help: you might have meant to introduce a new binding
42+ |
43+ LL | let some_variable = 6;
44+ | ~~~~~~~~~~~~~~~~~
45+
46+ error[E0425]: cannot find value `some_variable` in this scope
47+ --> $DIR/suggest-let-for-assignment.rs:11:35
48+ |
49+ LL | println!("some_variable: {}", some_variable);
50+ | ^^^^^^^^^^^^^ not found in this scope
51+
52+ error[E0425]: cannot find value `letother_variable` in this scope
53+ --> $DIR/suggest-let-for-assignment.rs:13:5
54+ |
55+ LL | letother_variable = 6;
56+ | ^^^^^^^^^^^^^^^^^
57+ |
58+ help: you might have meant to introduce a new binding
59+ |
60+ LL | let other_variable = 6;
61+ | ~~~~~~~~~~~~~~~~~~
62+
63+ error[E0425]: cannot find value `other_variable` in this scope
64+ --> $DIR/suggest-let-for-assignment.rs:14:36
65+ |
66+ LL | println!("other_variable: {}", other_variable);
67+ | ^^^^^^^^^^^^^^ not found in this scope
68+
3569error[E0425]: cannot find value `x` in this scope
36- --> $DIR/suggest-let-for-assignment.rs:10 :8
70+ --> $DIR/suggest-let-for-assignment.rs:16 :8
3771 |
3872LL | if x == "x" {
3973 | ^ not found in this scope
4074
4175error[E0425]: cannot find value `y` in this scope
42- --> $DIR/suggest-let-for-assignment.rs:15 :5
76+ --> $DIR/suggest-let-for-assignment.rs:21 :5
4377 |
4478LL | y = 1 + 2;
4579 | ^
4680 |
4781help: you might have meant to introduce a new binding
4882 |
4983LL | let y = 1 + 2;
50- | +++
84+ | ~~~~~
5185
5286error[E0425]: cannot find value `y` in this scope
53- --> $DIR/suggest-let-for-assignment.rs:16 :23
87+ --> $DIR/suggest-let-for-assignment.rs:22 :23
5488 |
5589LL | println!("y: {}", y);
5690 | ^ not found in this scope
5791
58- error: aborting due to 7 previous errors
92+ error: aborting due to 11 previous errors
5993
6094For more information about this error, try `rustc --explain E0425`.
0 commit comments