]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/forbid-error-capped.rs
Auto merge of #107185 - compiler-errors:rollup-wkomjma, r=compiler-errors
[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() {}