]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-let-for-assignment.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / suggest-let-for-assignment.stderr
1 error[E0425]: cannot find value `demo` in this scope
2   --> $DIR/suggest-let-for-assignment.rs:4:5
3    |
4 LL |     demo = 1;
5    |     ^^^^
6    |
7 help: you might have meant to introduce a new binding
8    |
9 LL |     let demo = 1;
10    |     +++
11
12 error[E0425]: cannot find value `demo` in this scope
13   --> $DIR/suggest-let-for-assignment.rs:5:10
14    |
15 LL |     dbg!(demo);
16    |          ^^^^ not found in this scope
17
18 error[E0425]: cannot find value `x` in this scope
19   --> $DIR/suggest-let-for-assignment.rs:7:5
20    |
21 LL |     x = "x";
22    |     ^
23    |
24 help: you might have meant to introduce a new binding
25    |
26 LL |     let x = "x";
27    |     +++
28
29 error[E0425]: cannot find value `x` in this scope
30   --> $DIR/suggest-let-for-assignment.rs:8:23
31    |
32 LL |     println!("x: {}", x);
33    |                       ^ not found in this scope
34
35 error[E0425]: cannot find value `x` in this scope
36   --> $DIR/suggest-let-for-assignment.rs:10:8
37    |
38 LL |     if x == "x" {
39    |        ^ not found in this scope
40
41 error[E0425]: cannot find value `y` in this scope
42   --> $DIR/suggest-let-for-assignment.rs:15:5
43    |
44 LL |     y = 1 + 2;
45    |     ^
46    |
47 help: you might have meant to introduce a new binding
48    |
49 LL |     let y = 1 + 2;
50    |     +++
51
52 error[E0425]: cannot find value `y` in this scope
53   --> $DIR/suggest-let-for-assignment.rs:16:23
54    |
55 LL |     println!("y: {}", y);
56    |                       ^ not found in this scope
57
58 error: aborting due to 7 previous errors
59
60 For more information about this error, try `rustc --explain E0425`.