blob: 0e1c307502728c7c8bedf38e64887a2e894be3d2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
fn fun(x: i32) -> i32 { x }
fn main() {
let closure_annotated = |value: i32| -> i32 {
temp: i32 = fun(5i32);
//~^ ERROR cannot find value `temp` in this scope
temp + value + 1
//~^ ERROR cannot find value `temp` in this scope
};
}
|