Add regression tests for suspicious_doc_comments (#14268)

Related to #14265 which was fixed automatically by the latest rustup.

changelog: none

*Edit: description, changelog, keep only tests*
This commit is contained in:
Jason Newcomb
2025-03-22 14:38:26 +00:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -87,4 +87,8 @@ pub mod useless_outer_doc {
use std::mem;
}
// Do not lint, this is not a `///!`
#[doc = "! here's some docs !"]
fn issue14265() {}
fn main() {}
+4
View File
@@ -87,4 +87,8 @@ pub mod useless_outer_doc {
use std::mem;
}
// Do not lint, this is not a `///!`
#[doc = "! here's some docs !"]
fn issue14265() {}
fn main() {}