mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-25 12:33:30 +00:00
19 lines
426 B
Rust
19 lines
426 B
Rust
#![allow(unused)]
|
|
#![warn(clippy::suspicious_doc_comments)]
|
|
//@no-rustfix
|
|
///! 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`
|
|
///! b
|
|
/// c
|
|
///! d
|
|
pub fn foo() {}
|
|
|
|
///! a
|
|
//~^ ERROR: this is an outer doc comment and does not apply to the parent module or crate
|
|
///! b
|
|
/// c
|
|
///! d
|
|
use std::mem;
|
|
|
|
fn main() {}
|