Skip to content

Commit 83ed4f4

Browse files
committed
test: Add a test case for the "self" region in enums
1 parent 1ed768b commit 83ed4f4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
enum int_wrapper {
2+
int_wrapper_ctor(&int)
3+
}
4+
5+
fn main() {
6+
unsafe {
7+
let x = 3;
8+
let y = int_wrapper_ctor(&x);
9+
let z : ∫
10+
alt y {
11+
int_wrapper_ctor(zz) { z = zz; }
12+
}
13+
log(debug, *z);
14+
}
15+
}
16+

0 commit comments

Comments
 (0)