We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee8a1b commit 8bda0ccCopy full SHA for 8bda0cc
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 5be8bf1de710338c464a8c107f959ebae4c78a6a
+refs/heads/master: afca68b82089db479594c1d012375c7791cb5bd5
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
trunk/src/test/run-pass/instantiable.rs
@@ -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};
6
+fn main() {
7
+ let x = foo({x: 0u, nxt: ptr::null()});
8
+}
9
0 commit comments