about summary refs log tree commit diff
path: root/tests/rustdoc-ui/lints/no-redundancy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/lints/no-redundancy.rs')
-rw-r--r--tests/rustdoc-ui/lints/no-redundancy.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/lints/no-redundancy.rs b/tests/rustdoc-ui/lints/no-redundancy.rs
new file mode 100644
index 00000000000..17582dff6c8
--- /dev/null
+++ b/tests/rustdoc-ui/lints/no-redundancy.rs
@@ -0,0 +1,4 @@
+// check-pass
+
+/// [Vec][std::vec::Vec#examples] should not warn, because it's not actually redundant!
+pub fn func() {}