diff options
Diffstat (limited to 'tests/ui/lint/forbid-error-capped.rs')
| -rw-r--r-- | tests/ui/lint/forbid-error-capped.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/lint/forbid-error-capped.rs b/tests/ui/lint/forbid-error-capped.rs new file mode 100644 index 00000000000..b56471a756d --- /dev/null +++ b/tests/ui/lint/forbid-error-capped.rs @@ -0,0 +1,15 @@ +// check-pass +// compile-args: --cap-lints=warn -Fwarnings + +// This checks that the forbid attribute checking is ignored when the forbidden +// lint is capped. + +#![forbid(warnings)] +#![allow(unused)] + +#[allow(unused)] +mod bar { + fn bar() {} +} + +fn main() {} |
