2023-04-20 14:37:15 +00:00
|
|
|
//@compile-flags: -W clippy::restriction
|
2022-10-30 21:15:46 +00:00
|
|
|
|
2020-10-06 22:02:28 +00:00
|
|
|
#![warn(clippy::blanket_clippy_restriction_lints)]
|
|
|
|
|
|
|
|
//! Test that the whole restriction group is not enabled
|
|
|
|
#![warn(clippy::restriction)]
|
2023-07-28 19:35:48 +00:00
|
|
|
//~^ ERROR: `clippy::restriction` is not meant to be enabled as a group
|
2020-10-06 22:02:28 +00:00
|
|
|
#![deny(clippy::restriction)]
|
2023-07-28 19:35:48 +00:00
|
|
|
//~^ ERROR: `clippy::restriction` is not meant to be enabled as a group
|
2020-10-06 22:02:28 +00:00
|
|
|
#![forbid(clippy::restriction)]
|
2023-07-28 19:35:48 +00:00
|
|
|
//~^ ERROR: `clippy::restriction` is not meant to be enabled as a group
|
2020-10-06 22:02:28 +00:00
|
|
|
|
|
|
|
fn main() {}
|