Skip to content

Commit e4d48c3

Browse files
committed
rustdoc: add test case for email that looks like intra-doc link
1 parent ebbcbfc commit e4d48c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
#![allow(rustdoc::broken_intra_doc_links)]
1+
#![forbid(rustdoc::broken_intra_doc_links)]
22

33
//! Email me at <[email protected]>.
44
//! Email me at <[email protected]>.
5-
//! Email me at <hello@localhost> (this warns but will still become a link).
5+
//! Email me at <hello@localhost>.
6+
//! Email me at <prim@i32>.
67
// @has email_address/index.html '//a[@href="mailto:[email protected]"]' '[email protected]'
78
// @has email_address/index.html '//a[@href="mailto:[email protected]"]' '[email protected]'
89
// @has email_address/index.html '//a[@href="mailto:hello@localhost"]' 'hello@localhost'
10+
// @has email_address/index.html '//a[@href="mailto:prim@i32"]' 'prim@i32'

0 commit comments

Comments
 (0)