2023-07-02 12:35:19 +00:00
|
|
|
error: this function is only used once
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/single_call_fn.rs:34:1
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | / fn c() {
|
|
|
|
LL | | println!("really");
|
|
|
|
LL | | println!("long");
|
|
|
|
LL | | println!("function...");
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
help: used here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/single_call_fn.rs:41:5
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | c();
|
|
|
|
| ^
|
|
|
|
= note: `-D clippy::single-call-fn` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::single_call_fn)]`
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
error: this function is only used once
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/single_call_fn.rs:13:1
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | fn i() {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: used here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/single_call_fn.rs:18:13
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | let a = i;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this function is only used once
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/single_call_fn.rs:44:1
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | fn a() {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: used here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/single_call_fn.rs:47:5
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | a();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this function is only used once
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/single_call_fn.rs:14:1
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | fn j() {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: used here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/single_call_fn.rs:25:9
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | j();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|