Skip to content

Commit a65cc36

Browse files
authored
Add regression tests for suspicious_doc_comments (rust-lang#14268)
Related to rust-lang#14265 which was fixed automatically by the latest rustup. changelog: none *Edit: description, changelog, keep only tests*
2 parents b41f2e4 + 3caa1f2 commit a65cc36

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/ui/suspicious_doc_comments.fixed

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,8 @@ pub mod useless_outer_doc {
8787
use std::mem;
8888
}
8989

90+
// Do not lint, this is not a `///!`
91+
#[doc = "! here's some docs !"]
92+
fn issue14265() {}
93+
9094
fn main() {}

tests/ui/suspicious_doc_comments.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,8 @@ pub mod useless_outer_doc {
8787
use std::mem;
8888
}
8989

90+
// Do not lint, this is not a `///!`
91+
#[doc = "! here's some docs !"]
92+
fn issue14265() {}
93+
9094
fn main() {}

0 commit comments

Comments
 (0)