diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-01-27 12:10:05 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-01-27 12:11:01 +0100 |
| commit | 1b64e16643eb3322b61f916c8cfec436e30e7bf3 (patch) | |
| tree | b1941479acd762affd5f509456e96b1a6911737b | |
| parent | b8c44fa414ebd27c21035b5e9247902723fa2590 (diff) | |
| download | rust-1b64e16643eb3322b61f916c8cfec436e30e7bf3.tar.gz rust-1b64e16643eb3322b61f916c8cfec436e30e7bf3.zip | |
Add regression test for #107350
| -rw-r--r-- | tests/rustdoc/issue-107350.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-107350.rs b/tests/rustdoc/issue-107350.rs new file mode 100644 index 00000000000..75f378ed249 --- /dev/null +++ b/tests/rustdoc/issue-107350.rs @@ -0,0 +1,18 @@ +// This is a regression test for <https://github.com/rust-lang/rust/issues/107350>. +// It shouldn't loop indefinitely. + +#![crate_name = "foo"] + +// @has 'foo/oops/enum.OhNo.html' + +pub mod oops { + pub use crate::oops::OhNo; + + mod inner { + pub enum OhNo { + Item = 1, + } + } + + pub use self::inner::*; +} |
