about summary refs log tree commit diff
path: root/tests/rustdoc-ui/nested-extern-crate-46271.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-11-23 14:54:19 -0700
committerMichael Howell <michael@notriddle.com>2023-11-23 14:54:19 -0700
commitfdde5c77a834c8275c23648ddaca9c18adee07d4 (patch)
treece5fe3b5b462dc47b86af655c5c13e249f6c2aaa /tests/rustdoc-ui/nested-extern-crate-46271.rs
parentcbe68435c603da438b8994c1a583b46fc01821cf (diff)
downloadrust-fdde5c77a834c8275c23648ddaca9c18adee07d4.tar.gz
rust-fdde5c77a834c8275c23648ddaca9c18adee07d4.zip
rustdoc: move ICE tests to ui
Diffstat (limited to 'tests/rustdoc-ui/nested-extern-crate-46271.rs')
-rw-r--r--tests/rustdoc-ui/nested-extern-crate-46271.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/nested-extern-crate-46271.rs b/tests/rustdoc-ui/nested-extern-crate-46271.rs
new file mode 100644
index 00000000000..d2ac38f3e45
--- /dev/null
+++ b/tests/rustdoc-ui/nested-extern-crate-46271.rs
@@ -0,0 +1,8 @@
+// check-pass
+// hopefully this doesn't cause an ICE
+
+// https://github.com/rust-lang/rust/issues/46271
+
+pub fn foo() {
+    extern crate std;
+}