about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-05-27 16:36:55 -0700
committerMichael Howell <michael@notriddle.com>2022-05-27 16:37:29 -0700
commite4d48c38c50789b55d24f1cc188d6affe0b6207d (patch)
treef414f3631a2e8cf5254d85c72002cea37254f697 /src/test/rustdoc
parentebbcbfc236ced21d5e6a92269edb704692ff26b8 (diff)
downloadrust-e4d48c38c50789b55d24f1cc188d6affe0b6207d.tar.gz
rust-e4d48c38c50789b55d24f1cc188d6affe0b6207d.zip
rustdoc: add test case for email that looks like intra-doc link
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/intra-doc/email-address.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/rustdoc/intra-doc/email-address.rs b/src/test/rustdoc/intra-doc/email-address.rs
index ae74fbbc892..24161c3bb48 100644
--- a/src/test/rustdoc/intra-doc/email-address.rs
+++ b/src/test/rustdoc/intra-doc/email-address.rs
@@ -1,8 +1,10 @@
-#![allow(rustdoc::broken_intra_doc_links)]
+#![forbid(rustdoc::broken_intra_doc_links)]
 
 //! Email me at <hello@example.com>.
 //! Email me at <hello-world@example.com>.
-//! Email me at <hello@localhost> (this warns but will still become a link).
+//! Email me at <hello@localhost>.
+//! Email me at <prim@i32>.
 // @has email_address/index.html '//a[@href="mailto:hello@example.com"]' 'hello@example.com'
 // @has email_address/index.html '//a[@href="mailto:hello-world@example.com"]' 'hello-world@example.com'
 // @has email_address/index.html '//a[@href="mailto:hello@localhost"]' 'hello@localhost'
+// @has email_address/index.html '//a[@href="mailto:prim@i32"]' 'prim@i32'