about summary refs log tree commit diff
path: root/tests/rustdoc-ui/ice-unresolved-import-100241.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-07-12 18:16:30 -0700
committerMichael Howell <michael@notriddle.com>2024-07-12 18:18:30 -0700
commit42ee400b0ffa7eeffb51e5b1e2e3fbcc6a130e0c (patch)
tree0870ee46fd7e716b7cf0ae2dbc9a1a785db5389d /tests/rustdoc-ui/ice-unresolved-import-100241.rs
parent17419f6499546443fd311cc81a0d44ae233c306f (diff)
downloadrust-42ee400b0ffa7eeffb51e5b1e2e3fbcc6a130e0c.tar.gz
rust-42ee400b0ffa7eeffb51e5b1e2e3fbcc6a130e0c.zip
Move assertion-free rustdoc ice tests to rustdoc-ui
Diffstat (limited to 'tests/rustdoc-ui/ice-unresolved-import-100241.rs')
-rw-r--r--tests/rustdoc-ui/ice-unresolved-import-100241.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/ice-unresolved-import-100241.rs b/tests/rustdoc-ui/ice-unresolved-import-100241.rs
new file mode 100644
index 00000000000..eef4b8355bf
--- /dev/null
+++ b/tests/rustdoc-ui/ice-unresolved-import-100241.rs
@@ -0,0 +1,14 @@
+//! See [`S`].
+
+// Check that this isn't an ICE
+//@ should-fail
+
+// https://github.com/rust-lang/rust/issues/100241
+
+mod foo {
+    pub use inner::S;
+    //~^ ERROR unresolved imports `inner`, `foo::S`
+}
+
+use foo::*;
+use foo::S;