2021-09-06 15:44:19 +00:00
|
|
|
error: unused variable: `a`
|
2022-03-19 15:50:24 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:17:32
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | pub extern "C" fn function(a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_a`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2022-03-19 15:50:24 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:5:9
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(unused)]
|
|
|
|
| ^^^^^^
|
|
|
|
= note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
|
|
|
|
|
|
|
|
error: unused variable: `b`
|
2022-03-19 15:50:24 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:17:42
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | pub extern "C" fn function(a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
|
|
|
|
|
|
|
error: unused variable: `a`
|
2024-08-04 14:45:48 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:28:38
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | pub extern "C" fn associated(a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_a`
|
|
|
|
|
|
|
|
error: unused variable: `b`
|
2024-08-04 14:45:48 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:28:48
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | pub extern "C" fn associated(a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
|
|
|
|
|
|
|
error: unused variable: `a`
|
2024-08-04 14:45:48 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:36:41
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | pub extern "C" fn method(&self, a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_a`
|
|
|
|
|
|
|
|
error: unused variable: `b`
|
2024-08-04 14:45:48 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:36:51
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | pub extern "C" fn method(&self, a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
|
|
|
|
|
|
|
error: unused variable: `a`
|
2024-08-04 14:45:48 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:46:40
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | extern "C" fn trait_associated(a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_a`
|
|
|
|
|
|
|
|
error: unused variable: `b`
|
2024-08-04 14:45:48 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:46:50
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | extern "C" fn trait_associated(a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
|
|
|
|
|
|
|
error: unused variable: `a`
|
2024-08-04 14:45:48 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:54:43
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | extern "C" fn trait_method(&self, a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_a`
|
|
|
|
|
|
|
|
error: unused variable: `b`
|
2024-08-04 14:45:48 +00:00
|
|
|
--> $DIR/naked-functions-unused.rs:54:53
|
2021-09-06 15:44:19 +00:00
|
|
|
|
|
|
|
|
LL | extern "C" fn trait_method(&self, a: usize, b: usize) -> usize {
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|