summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/blanket_clippy_restriction_lints.rs
blob: 2bfaadf8df94eb4fd0522b574337b0a1b3f68b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@compile-flags: -W clippy::restriction

#![warn(clippy::blanket_clippy_restriction_lints)]

//! Test that the whole restriction group is not enabled
#![warn(clippy::restriction)]
//~^ ERROR: `clippy::restriction` is not meant to be enabled as a group
#![deny(clippy::restriction)]
//~^ ERROR: `clippy::restriction` is not meant to be enabled as a group
#![forbid(clippy::restriction)]
//~^ ERROR: `clippy::restriction` is not meant to be enabled as a group

fn main() {}