rust/tests/ui/suspicious_doc_comments_unfixable.rs

20 lines
426 B
Rust
Raw Normal View History

2023-03-13 12:06:31 +00:00
#![allow(unused)]
#![warn(clippy::suspicious_doc_comments)]
2023-07-27 11:40:22 +00:00
//@no-rustfix
2023-03-13 12:06:31 +00: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 12:06:31 +00: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 12:06:31 +00:00
///! b
/// c
///! d
use std::mem;
fn main() {}