]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/forbid-error-capped.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / forbid-error-capped.rs
1 // check-pass
2 // compile-args: --cap-lints=warn -Fwarnings
3
4 // This checks that the forbid attribute checking is ignored when the forbidden
5 // lint is capped.
6
7 #![forbid(warnings)]
8 #![allow(unused)]
9
10 #[allow(unused)]
11 mod bar {
12     fn bar() {}
13 }
14
15 fn main() {}