test file I had lying around and had forgotten to commit
This commit is contained in:
parent
5be8bf1de7
commit
afca68b820
1 changed files with 9 additions and 0 deletions
9
src/test/run-pass/instantiable.rs
Normal file
9
src/test/run-pass/instantiable.rs
Normal 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()});
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue