]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/forbid-error-capped.rs
New upstream version 1.64.0+dfsg1
[rustc.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() {}