mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
12 lines
225 B
Rust
12 lines
225 B
Rust
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
|
|
}
|