]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-1866.stderr
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / lint / issue-1866.stderr
1 warning: `rust_task_is_unwinding` redeclared with a different signature
2   --> $DIR/issue-1866.rs:23:13
3    |
4 LL |             pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
5    |             ------------------------------------------------------------ `rust_task_is_unwinding` previously declared here
6 ...
7 LL |             pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
8    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
9    |
10    = note: expected `unsafe extern "C" fn(*const usize) -> bool`
11               found `unsafe extern "C" fn(*const bool) -> bool`
12 note: the lint level is defined here
13   --> $DIR/issue-1866.rs:4:9
14    |
15 LL | #![warn(clashing_extern_declarations)]
16    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
18 warning: 1 warning emitted
19