]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-104700-inner_scope.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / issue-104700-inner_scope.rs
1 fn main() {
2     let foo = 1;
3     {
4         let bar = 2;
5         let test_func = |x| x > 3;
6     }
7     if bar == 2 { //~ ERROR cannot find value
8         println!("yes");
9     }
10     test_func(1); //~ ERROR cannot find function
11 }