summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/foreign-type-path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/foreign-type-path.rs')
-rw-r--r--tests/rustdoc-js/foreign-type-path.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc-js/foreign-type-path.rs b/tests/rustdoc-js/foreign-type-path.rs
new file mode 100644
index 000000000..83400104e
--- /dev/null
+++ b/tests/rustdoc-js/foreign-type-path.rs
@@ -0,0 +1,13 @@
+#![feature(extern_types)]
+
+pub mod aaaaaaa {
+
+ extern {
+ pub type MyForeignType;
+ }
+
+ impl MyForeignType {
+ pub fn my_method() {}
+ }
+
+}