mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
tests: Add test function that does not specify ABI
This commit is contained in:
parent
5ae0f2644d
commit
b709b87363
1 changed files with 3 additions and 0 deletions
|
@ -179,3 +179,6 @@ mod issue_3739 {
|
|||
///
|
||||
/// This shouldn't warn for `boxed_local` as it is intended to called from non-Rust code.
|
||||
pub extern "C" fn do_not_warn_me(_c_pointer: Box<String>) -> () {}
|
||||
|
||||
#[rustfmt::skip] // Forces rustfmt to not add ABI
|
||||
pub extern fn do_not_warn_me_no_abi(_c_pointer: Box<String>) -> () {}
|
||||
|
|
Loading…
Reference in a new issue