]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-104700-inner_scope.stderr
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-104700-inner_scope.stderr
1 error[E0425]: cannot find value `bar` in this scope
2   --> $DIR/issue-104700-inner_scope.rs:7:8
3    |
4 LL |     if bar == 2 {
5    |        ^^^
6    |
7 help: the binding `bar` is available in a different scope in the same function
8   --> $DIR/issue-104700-inner_scope.rs:4:13
9    |
10 LL |         let bar = 2;
11    |             ^^^
12
13 error[E0425]: cannot find function `test_func` in this scope
14   --> $DIR/issue-104700-inner_scope.rs:10:5
15    |
16 LL |     test_func(1);
17    |     ^^^^^^^^^ not found in this scope
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0425`.