summary refs log tree commit diff
path: root/src/test/run-pass/instantiable.rs
blob: f9389ba8ce39077e5b1bc16fcfc32dbf77030285 (plain)
1
2
3
4
5
6
7
8
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()});
}