2023-06-14 11:48:34 +00:00
|
|
|
error: this function is only used once
|
2023-04-20 15:19:36 +00:00
|
|
|
--> $DIR/single_call_fn.rs:33: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-04-20 15:19:36 +00:00
|
|
|
--> $DIR/single_call_fn.rs:40: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-04-20 15:19:36 +00:00
|
|
|
--> $DIR/single_call_fn.rs:12:1
|
2023-06-14 12:16:56 +00:00
|
|
|
|
|
|
|
|
LL | fn i() {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: used here
|
2023-04-20 15:19:36 +00:00
|
|
|
--> $DIR/single_call_fn.rs:17:13
|
2023-06-14 12:16:56 +00:00
|
|
|
|
|
|
|
|
LL | let a = i;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this function is only used once
|
2023-04-20 15:19:36 +00:00
|
|
|
--> $DIR/single_call_fn.rs:43:1
|
2023-06-14 11:48:34 +00:00
|
|
|
|
|
|
|
|
LL | fn a() {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: used here
|
2023-04-20 15:19:36 +00:00
|
|
|
--> $DIR/single_call_fn.rs:46:5
|
2023-06-14 11:48:34 +00:00
|
|
|
|
|
|
|
|
LL | a();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this function is only used once
|
2023-04-20 15:19:36 +00:00
|
|
|
--> $DIR/single_call_fn.rs:13: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-04-20 15:19:36 +00:00
|
|
|
--> $DIR/single_call_fn.rs:24: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
|
|
|
|