]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-5791.stderr
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-5791.stderr
CommitLineData
72b1a166
FG
1warning: `malloc2` redeclares `malloc` with a different signature
2 --> $DIR/issue-5791.rs:9:5
3 |
4LL | / #[link_name = "malloc"]
5LL | | fn malloc1(len: i32) -> *const u8;
6 | |______________________________________- `malloc` previously declared here
7LL | / #[link_name = "malloc"]
8LL | |
9LL | | fn malloc2(len: i32, foo: i32) -> *const u8;
10 | |________________________________________________^ this signature doesn't match the previous declaration
11 |
12note: the lint level is defined here
13 --> $DIR/issue-5791.rs:3:9
14 |
15LL | #![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`
19
20warning: 1 warning emitted
21