Skip to content

Commit df19b7a

Browse files
committed
Test for issue #980
1 parent 6b42ad5 commit df19b7a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/run-pass/issue-980.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
tag maybe_pointy {
2+
no_pointy;
3+
yes_pointy(@pointy);
4+
}
5+
6+
type pointy = {
7+
mutable x : maybe_pointy
8+
};
9+
10+
fn main() {
11+
let m = @{ mutable x : no_pointy };
12+
m.x = yes_pointy(m);
13+
}

0 commit comments

Comments
 (0)