summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/suspicious_doc_comments_unfixable.rs
blob: 9e9c4775748ca4200e97828e44c5c1055cb38383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#![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() {}