summaryrefslogtreecommitdiff
path: root/tests/expectations/replace_template_alias.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expectations/replace_template_alias.rs')
-rw-r--r--tests/expectations/replace_template_alias.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/expectations/replace_template_alias.rs b/tests/expectations/replace_template_alias.rs
new file mode 100644
index 00000000..61a2fbcc
--- /dev/null
+++ b/tests/expectations/replace_template_alias.rs
@@ -0,0 +1,15 @@
+/* automatically generated by rust-bindgen */
+
+
+#![allow(non_snake_case)]
+
+
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
+pub struct Rooted<T> {
+ pub ptr: MaybeWrapped<T>,
+}
+/// But the replacement type does use T!
+///
+/// <div rustbindgen replaces="MaybeWrapped" />
+pub type MaybeWrapped<T> = T;