about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/ignore_without_reason.rs
blob: 53ac34c27248e0c44bad9416fdc993b4570efbd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![warn(clippy::ignore_without_reason)]

fn main() {}

#[test]
fn unignored_test() {}

#[test]
#[ignore = "Some good reason"]
fn ignored_with_reason() {}

#[test]
#[ignore] //~ ignore_without_reason
fn ignored_without_reason() {}