1 warning: `malloc2` redeclares `malloc` with a different signature
2 --> $DIR/issue-5791.rs:9:5
4 LL | / #[link_name = "malloc"]
5 LL | | fn malloc1(len: i32) -> *const u8;
6 | |______________________________________- `malloc` previously declared here
7 LL | / #[link_name = "malloc"]
9 LL | | fn malloc2(len: i32, foo: i32) -> *const u8;
10 | |________________________________________________^ this signature doesn't match the previous declaration
12 note: the lint level is defined here
13 --> $DIR/issue-5791.rs:3:9
15 LL | #![warn(clashing_extern_declarations)]
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 = note: expected `unsafe extern "C" fn(i32) -> *const u8`
18 found `unsafe extern "C" fn(i32, i32) -> *const u8`
20 warning: 1 warning emitted