]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/forbid-error-capped.rs
Rollup merge of #106762 - WaffleLapkin:atomicptr+as_mut_ptr, r=m-ou-se
[rust.git] / tests / 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() {}