Test for issue #980
This commit is contained in:
parent
6b42ad5ea0
commit
df19b7a13a
1 changed files with 13 additions and 0 deletions
13
src/test/run-pass/issue-980.rs
Normal file
13
src/test/run-pass/issue-980.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
tag maybe_pointy {
|
||||
no_pointy;
|
||||
yes_pointy(@pointy);
|
||||
}
|
||||
|
||||
type pointy = {
|
||||
mutable x : maybe_pointy
|
||||
};
|
||||
|
||||
fn main() {
|
||||
let m = @{ mutable x : no_pointy };
|
||||
m.x = yes_pointy(m);
|
||||
}
|
Loading…
Reference in a new issue