fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
607 B21 linesraw
1error[E0425]: cannot find value `bar` in this scope
2  --> $DIR/issue-104700-inner_scope.rs:7:8
3   |
4LL |     if bar == 2 {
5   |        ^^^
6   |
7help: the binding `bar` is available in a different scope in the same function
8  --> $DIR/issue-104700-inner_scope.rs:4:13
9   |
10LL |         let bar = 2;
11   |             ^^^
12
13error[E0425]: cannot find function `test_func` in this scope
14  --> $DIR/issue-104700-inner_scope.rs:10:5
15   |
16LL |     test_func(1);
17   |     ^^^^^^^^^ not found in this scope
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0425`.