From e4d48c38c50789b55d24f1cc188d6affe0b6207d Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Fri, 27 May 2022 16:36:55 -0700 Subject: [PATCH] rustdoc: add test case for email that looks like intra-doc link --- src/test/rustdoc/intra-doc/email-address.rs | 6 ++++-- 1 file 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 . //! Email me at . -//! Email me at (this warns but will still become a link). +//! Email me at . +//! Email me at . // @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'