Skip to content

Commit afca68b

Browse files
committed
test file I had lying around and had forgotten to commit
1 parent 5be8bf1 commit afca68b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/run-pass/instantiable.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
// check that we do not report a type like this as uninstantiable,
3+
// even though it would be if the nxt field had type @foo:
4+
enum foo = {x: uint, nxt: *foo};
5+
6+
fn main() {
7+
let x = foo({x: 0u, nxt: ptr::null()});
8+
}
9+

0 commit comments

Comments
 (0)