diff options
| author | apekros <bayleyfoster@gmail.com> | 2023-09-27 18:05:14 +1000 |
|---|---|---|
| committer | apekros <bayleyfoster@gmail.com> | 2023-09-27 18:05:14 +1000 |
| commit | ac9707d25cb05b43a4466dbf18ca56f1b463ea78 (patch) | |
| tree | 2044683b00425c7d1cf2cc505e3c3843b2ee8e42 /tests/ui/foreign | |
| parent | 376f3f059059b7fdd1331c77103943fd7c22918c (diff) | |
| download | rust-ac9707d25cb05b43a4466dbf18ca56f1b463ea78.tar.gz rust-ac9707d25cb05b43a4466dbf18ca56f1b463ea78.zip | |
Add regression test for rust-lang#56098
Diffstat (limited to 'tests/ui/foreign')
| -rw-r--r-- | tests/ui/foreign/foreign-fn-linkname.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/foreign/foreign-fn-linkname.rs b/tests/ui/foreign/foreign-fn-linkname.rs index f6d820594f9..d1d6e703e3d 100644 --- a/tests/ui/foreign/foreign-fn-linkname.rs +++ b/tests/ui/foreign/foreign-fn-linkname.rs @@ -2,6 +2,9 @@ // ignore-wasm32-bare no libc to test ffi with // ignore-sgx no libc +// Ensure no false positive on "unused extern crate" lint +#![deny(unused_extern_crates)] + #![feature(rustc_private)] extern crate libc; |
