Skip to content

Commit

Permalink
rustdoc: add test case for email that looks like intra-doc link
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed May 27, 2022
1 parent ebbcbfc commit e4d48c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/rustdoc/intra-doc/email-address.rs
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit e4d48c3

Please sign in to comment.