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