Skip to content

Commit ac9707d

Browse files
committed
Add regression test for rust-lang#56098
1 parent 376f3f0 commit ac9707d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ui/foreign/foreign-fn-linkname.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// ignore-wasm32-bare no libc to test ffi with
33
// ignore-sgx no libc
44

5+
// Ensure no false positive on "unused extern crate" lint
6+
#![deny(unused_extern_crates)]
7+
58
#![feature(rustc_private)]
69

710
extern crate libc;

0 commit comments

Comments
 (0)