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