rust-clippy/tests/ui/single_call_fn.stderr
2023-06-17 20:01:06 -05:00

31 lines
594 B
Text

error: this function is only used once
--> $DIR/single_call_fn.rs:26:1
|
LL | fn a() {}
| ^^^^^^^^^
|
help: used here
--> $DIR/single_call_fn.rs:29:5
|
LL | a();
| ^
= note: `-D clippy::single-call-fn` implied by `-D warnings`
error: this function is only used once
--> $DIR/single_call_fn.rs:16:1
|
LL | / fn c() {
LL | | println!("really");
LL | | println!("long");
LL | | println!("function...");
LL | | }
| |_^
|
help: used here
--> $DIR/single_call_fn.rs:23:5
|
LL | c();
| ^
error: aborting due to 2 previous errors