about summary refs log tree commit diff
path: root/tests/rustdoc/ice-nested-extern-crate-46271.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/ice-nested-extern-crate-46271.rs')
-rw-r--r--tests/rustdoc/ice-nested-extern-crate-46271.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc/ice-nested-extern-crate-46271.rs b/tests/rustdoc/ice-nested-extern-crate-46271.rs
new file mode 100644
index 00000000000..b38ef20c551
--- /dev/null
+++ b/tests/rustdoc/ice-nested-extern-crate-46271.rs
@@ -0,0 +1,5 @@
+// hopefully this doesn't cause an ICE
+
+pub fn foo() {
+    extern crate std;
+}