test file I had lying around and had forgotten to commit

This commit is contained in:
Niko Matsakis 2012-05-18 06:54:15 -07:00
parent 5be8bf1de7
commit afca68b820

View file

@ -0,0 +1,9 @@
// check that we do not report a type like this as uninstantiable,
// even though it would be if the nxt field had type @foo:
enum foo = {x: uint, nxt: *foo};
fn main() {
let x = foo({x: 0u, nxt: ptr::null()});
}