1 error: unused variable: `a`
2 --> $DIR/naked-functions-unused.rs:17:32
4 LL | pub extern "C" fn function(a: usize, b: usize) -> usize {
5 | ^ help: if this is intentional, prefix it with an underscore: `_a`
7 note: the lint level is defined here
8 --> $DIR/naked-functions-unused.rs:5:9
12 = note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
14 error: unused variable: `b`
15 --> $DIR/naked-functions-unused.rs:17:42
17 LL | pub extern "C" fn function(a: usize, b: usize) -> usize {
18 | ^ help: if this is intentional, prefix it with an underscore: `_b`
20 error: unused variable: `a`
21 --> $DIR/naked-functions-unused.rs:26:38
23 LL | pub extern "C" fn associated(a: usize, b: usize) -> usize {
24 | ^ help: if this is intentional, prefix it with an underscore: `_a`
26 error: unused variable: `b`
27 --> $DIR/naked-functions-unused.rs:26:48
29 LL | pub extern "C" fn associated(a: usize, b: usize) -> usize {
30 | ^ help: if this is intentional, prefix it with an underscore: `_b`
32 error: unused variable: `a`
33 --> $DIR/naked-functions-unused.rs:32:41
35 LL | pub extern "C" fn method(&self, a: usize, b: usize) -> usize {
36 | ^ help: if this is intentional, prefix it with an underscore: `_a`
38 error: unused variable: `b`
39 --> $DIR/naked-functions-unused.rs:32:51
41 LL | pub extern "C" fn method(&self, a: usize, b: usize) -> usize {
42 | ^ help: if this is intentional, prefix it with an underscore: `_b`
44 error: unused variable: `a`
45 --> $DIR/naked-functions-unused.rs:40:40
47 LL | extern "C" fn trait_associated(a: usize, b: usize) -> usize {
48 | ^ help: if this is intentional, prefix it with an underscore: `_a`
50 error: unused variable: `b`
51 --> $DIR/naked-functions-unused.rs:40:50
53 LL | extern "C" fn trait_associated(a: usize, b: usize) -> usize {
54 | ^ help: if this is intentional, prefix it with an underscore: `_b`
56 error: unused variable: `a`
57 --> $DIR/naked-functions-unused.rs:46:43
59 LL | extern "C" fn trait_method(&self, a: usize, b: usize) -> usize {
60 | ^ help: if this is intentional, prefix it with an underscore: `_a`
62 error: unused variable: `b`
63 --> $DIR/naked-functions-unused.rs:46:53
65 LL | extern "C" fn trait_method(&self, a: usize, b: usize) -> usize {
66 | ^ help: if this is intentional, prefix it with an underscore: `_b`
68 error: aborting due to 10 previous errors