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
Lines changed: 4 additions & 2 deletions
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 <hello@example.com>.
44
//! Email me at <hello-world@example.com>.
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:hello@example.com"]' 'hello@example.com'
78
// @has email_address/index.html '//a[@href="mailto:hello-world@example.com"]' 'hello-world@example.com'
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)