From ac9707d25cb05b43a4466dbf18ca56f1b463ea78 Mon Sep 17 00:00:00 2001 From: apekros Date: Wed, 27 Sep 2023 18:05:14 +1000 Subject: [PATCH] Add regression test for rust-lang#56098 --- tests/ui/foreign/foreign-fn-linkname.rs | 3 +++ 1 file changed, 3 insertions(+) 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;