diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-03-28 11:09:08 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-03-28 11:09:08 +0100 |
| commit | f1cfbdbb9970890fc3b850037e84164a6b5c4ca0 (patch) | |
| tree | 3bc52575b08d85d2770e704ab6098a01e636c8b5 | |
| parent | 75fedfc4eaa9fd62160fadd21a98506520748f95 (diff) | |
| download | rust-f1cfbdbb9970890fc3b850037e84164a6b5c4ca0.tar.gz rust-f1cfbdbb9970890fc3b850037e84164a6b5c4ca0.zip | |
Add regression test for #123158
| -rw-r--r-- | tests/rustdoc-ui/invalid-redundant-explicit-link.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/invalid-redundant-explicit-link.rs b/tests/rustdoc-ui/invalid-redundant-explicit-link.rs new file mode 100644 index 00000000000..99ac1d82aaf --- /dev/null +++ b/tests/rustdoc-ui/invalid-redundant-explicit-link.rs @@ -0,0 +1,8 @@ +//@ check-pass + +// Regression test for <https://github.com/rust-lang/rust/issues/123158>. It +// should not emit any warning. + +//! [**`SomeTrait`**](SomeTrait): + +pub trait SomeTrait {} |
