rust/tests/ui/single_call_fn.stderr

56 lines
1005 B
Plaintext
Raw Normal View History

2023-06-14 06:48:34 -05:00
error: this function is only used once
2023-04-20 10:19:36 -05:00
--> $DIR/single_call_fn.rs:33:1
2023-06-14 07:16:56 -05:00
|
LL | / fn c() {
LL | | println!("really");
LL | | println!("long");
LL | | println!("function...");
LL | | }
| |_^
|
help: used here
2023-04-20 10:19:36 -05:00
--> $DIR/single_call_fn.rs:40:5
2023-06-14 07:16:56 -05:00
|
LL | c();
| ^
= note: `-D clippy::single-call-fn` implied by `-D warnings`
error: this function is only used once
2023-04-20 10:19:36 -05:00
--> $DIR/single_call_fn.rs:12:1
2023-06-14 07:16:56 -05:00
|
LL | fn i() {}
| ^^^^^^^^^
|
help: used here
2023-04-20 10:19:36 -05:00
--> $DIR/single_call_fn.rs:17:13
2023-06-14 07:16:56 -05:00
|
LL | let a = i;
| ^
error: this function is only used once
2023-04-20 10:19:36 -05:00
--> $DIR/single_call_fn.rs:43:1
2023-06-14 06:48:34 -05:00
|
LL | fn a() {}
| ^^^^^^^^^
|
help: used here
2023-04-20 10:19:36 -05:00
--> $DIR/single_call_fn.rs:46:5
2023-06-14 06:48:34 -05:00
|
LL | a();
| ^
error: this function is only used once
2023-04-20 10:19:36 -05:00
--> $DIR/single_call_fn.rs:13:1
2023-06-14 06:48:34 -05:00
|
2023-06-14 07:16:56 -05:00
LL | fn j() {}
| ^^^^^^^^^
2023-06-14 06:48:34 -05:00
|
help: used here
2023-04-20 10:19:36 -05:00
--> $DIR/single_call_fn.rs:24:9
2023-06-14 06:48:34 -05:00
|
2023-06-14 07:16:56 -05:00
LL | j();
| ^
2023-06-14 06:48:34 -05:00
2023-06-14 07:16:56 -05:00
error: aborting due to 4 previous errors
2023-06-14 06:48:34 -05:00