]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/forbid-error-capped.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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() {}