rust/tests/ui/suspicious_doc_comments_unfixable.rs

20 lines
426 B
Rust
Raw Normal View History

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
//~^ 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
//~^ 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() {}