blob: e8f28c113e3ad9114d246d0172fee0133f3b3929 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
fn main() {
let foo = 1;
{
let bar = 2;
let test_func = |x| x > 3;
}
if bar == 2 { //~ ERROR cannot find value
println!("yes");
}
test_func(1); //~ ERROR cannot find function
}
|