2023-03-13 07:06:31 -05:00
|
|
|
#![allow(unused)]
|
|
|
|
#![warn(clippy::suspicious_doc_comments)]
|
2023-07-27 06:40:22 -05:00
|
|
|
//@no-rustfix
|
2023-03-13 07:06:31 -05:00
|
|
|
///! a
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: this is an outer doc comment and does not apply to the parent module or crate
|
|
|
|
//~| NOTE: `-D clippy::suspicious-doc-comments` implied by `-D warnings`
|
2023-03-13 07:06:31 -05:00
|
|
|
///! b
|
|
|
|
/// c
|
|
|
|
///! d
|
|
|
|
pub fn foo() {}
|
|
|
|
|
|
|
|
///! a
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: this is an outer doc comment and does not apply to the parent module or crate
|
2023-03-13 07:06:31 -05:00
|
|
|
///! b
|
|
|
|
/// c
|
|
|
|
///! d
|
|
|
|
use std::mem;
|
|
|
|
|
|
|
|
fn main() {}
|