We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d02c71 commit 43ea46dCopy full SHA for 43ea46d
tests/expectations/tests/issue-446.rs
@@ -0,0 +1,16 @@
1
+/* automatically generated by rust-bindgen */
2
+
3
4
+#![allow(non_snake_case)]
5
6
7
+#[repr(C)]
8
+#[derive(Debug, Copy, Clone)]
9
+pub struct List<Elem> {
10
+ pub next: *mut List<Elem>,
11
+}
12
13
14
+pub struct PersistentRooted<GcThing> {
15
+ pub root_list: List<PersistentRooted<GcThing>>,
16
tests/headers/issue-446.hpp
@@ -0,0 +1,11 @@
+// bindgen-flags: -- -std=c++14
+template <typename Elem>
+class List {
+ List<Elem> *next;
+};
+template <typename GcThing>
+class PersistentRooted {
+ List<PersistentRooted<GcThing>> root_list;
0 commit comments