aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/closure_in_o3_rejected.zc
blob: 66bb2671688373da8221e9d98468f751c417c6c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
// expect error: closures can't be made inside an o3 region
include rt;
fn main() {
	o3 {
		int k = 1;
		int(int) f = fn(int x) { return x + k; };
	}
	return 0;
}