rust-clippy/tests/ui/single_call_fn.stderr

32 lines
594 B
Text
Raw Normal View History

2023-06-14 11:48:34 +00:00
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