1 A lint check attribute was overruled by a `forbid` directive set as an
2 attribute on an enclosing scope, or on the command line with the `-F` option.
4 Example of erroneous code:
7 #![forbid(non_snake_case)]
9 #[allow(non_snake_case)]
11 let MyNumber = 2; // error: allow(non_snake_case) overruled by outer
12 // forbid(non_snake_case)
16 The `forbid` lint setting, like `deny`, turns the corresponding compiler
17 warning into a hard error. Unlike `deny`, `forbid` prevents itself from being
18 overridden by inner attributes.
20 If you're sure you want to override the lint check, you can change `forbid` to
21 `deny` (or use `-D` instead of `-F` if the `forbid` setting was given as a
22 command-line option) to allow the inner lint check attribute:
25 #![deny(non_snake_case)]
27 #[allow(non_snake_case)]
29 let MyNumber = 2; // ok!
33 Otherwise, edit the code to pass the lint check, and remove the overruled
37 #![forbid(non_snake_case)]