rustc/tests/rustdoc-ui/lints/no-redundancy.rs
2024-05-27 22:45:50 +02:00

8 lines
263 B
Rust

// check-pass
#![deny(rustdoc::redundant_explicit_links)]
/// [Vec][std::vec::Vec#examples] should not warn, because it's not actually redundant!
/// [This is just an `Option`][std::option::Option] has different display content to actual link!
pub fn func() {}