2023-06-14 11:48:34 +00:00
|
|
|
error: this function is only used once
|
2023-09-06 14:58:44 +00:00
|
|
|
--> $DIR/single_call_fn.rs:34:1
|
2023-06-14 12:16:56 +00:00
|
|
|
|
|
|
|
|
LL | / fn c() {
|
|
|
|
LL | | println!("really");
|
|
|
|
LL | | println!("long");
|
|
|
|
LL | | println!("function...");
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
help: used here
|
2023-09-06 14:58:44 +00:00
|
|
|
--> $DIR/single_call_fn.rs:41:5
|
2023-06-14 12:16:56 +00:00
|
|
|
|
|
|
|
|
LL | c();
|
|
|
|
| ^
|
|
|
|
= note: `-D clippy::single-call-fn` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this function is only used once
|
2023-09-06 14:58:44 +00:00
|
|
|
--> $DIR/single_call_fn.rs:13:1
|
2023-06-14 12:16:56 +00:00
|
|
|
|
|
|
|
|
LL | fn i() {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: used here
|
2023-09-06 14:58:44 +00:00
|
|
|
--> $DIR/single_call_fn.rs:18:13
|
2023-06-14 12:16:56 +00:00
|
|
|
|
|
|
|
|
LL | let a = i;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this function is only used once
|
2023-09-06 14:58:44 +00:00
|
|
|
--> $DIR/single_call_fn.rs:44:1
|
2023-06-14 11:48:34 +00:00
|
|
|
|
|
|
|
|
LL | fn a() {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: used here
|
2023-09-06 14:58:44 +00:00
|
|
|
--> $DIR/single_call_fn.rs:47:5
|
2023-06-14 11:48:34 +00:00
|
|
|
|
|
|
|
|
LL | a();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this function is only used once
|
2023-09-06 14:58:44 +00:00
|
|
|
--> $DIR/single_call_fn.rs:14:1
|
2023-06-14 11:48:34 +00:00
|
|
|
|
|
2023-06-14 12:16:56 +00:00
|
|
|
LL | fn j() {}
|
|
|
|
| ^^^^^^^^^
|
2023-06-14 11:48:34 +00:00
|
|
|
|
|
|
|
|
help: used here
|
2023-09-06 14:58:44 +00:00
|
|
|
--> $DIR/single_call_fn.rs:25:9
|
2023-06-14 11:48:34 +00:00
|
|
|
|
|
2023-06-14 12:16:56 +00:00
|
|
|
LL | j();
|
|
|
|
| ^
|
2023-06-14 11:48:34 +00:00
|
|
|
|
2023-06-14 12:16:56 +00:00
|
|
|
error: aborting due to 4 previous errors
|
2023-06-14 11:48:34 +00:00
|
|
|
|