diff options
Diffstat (limited to 'tests/rustdoc-ui/reference-links.rs')
-rw-r--r-- | tests/rustdoc-ui/reference-links.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/reference-links.rs b/tests/rustdoc-ui/reference-links.rs new file mode 100644 index 000000000..e81e03446 --- /dev/null +++ b/tests/rustdoc-ui/reference-links.rs @@ -0,0 +1,6 @@ +// Test that errors point to the reference, not to the title text. +#![deny(rustdoc::broken_intra_doc_links)] +//! Links to [a] [link][a] +//! +//! [a]: std::process::Comman +//~^ ERROR unresolved |