mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-25 12:33:30 +00:00
80 lines
1.6 KiB
Text
80 lines
1.6 KiB
Text
error: this function is only used once
|
|
--> tests/ui/single_call_fn.rs:13:1
|
|
|
|
|
LL | fn i() {}
|
|
| ^^^^^^^^^
|
|
|
|
|
note: used here
|
|
--> tests/ui/single_call_fn.rs:18:13
|
|
|
|
|
LL | let a = i;
|
|
| ^
|
|
= note: `-D clippy::single-call-fn` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::single_call_fn)]`
|
|
|
|
error: this function is only used once
|
|
--> tests/ui/single_call_fn.rs:14:1
|
|
|
|
|
LL | fn j() {}
|
|
| ^^^^^^^^^
|
|
|
|
|
note: used here
|
|
--> tests/ui/single_call_fn.rs:25:9
|
|
|
|
|
LL | j();
|
|
| ^
|
|
|
|
error: this function is only used once
|
|
--> tests/ui/single_call_fn.rs:34:1
|
|
|
|
|
LL | / fn c() {
|
|
LL | | println!("really");
|
|
LL | | println!("long");
|
|
LL | | println!("function...");
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
note: used here
|
|
--> tests/ui/single_call_fn.rs:41:5
|
|
|
|
|
LL | c();
|
|
| ^
|
|
|
|
error: this function is only used once
|
|
--> tests/ui/single_call_fn.rs:44:1
|
|
|
|
|
LL | fn a() {}
|
|
| ^^^^^^^^^
|
|
|
|
|
note: used here
|
|
--> tests/ui/single_call_fn.rs:47:5
|
|
|
|
|
LL | a();
|
|
| ^
|
|
|
|
error: this function is only used once
|
|
--> tests/ui/single_call_fn.rs:89:5
|
|
|
|
|
LL | fn default() {}
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
note: used here
|
|
--> tests/ui/single_call_fn.rs:104:5
|
|
|
|
|
LL | T::default();
|
|
| ^^^^^^^^^^
|
|
|
|
error: this function is only used once
|
|
--> tests/ui/single_call_fn.rs:102:9
|
|
|
|
|
LL | fn foo() {}
|
|
| ^^^^^^^^^^^
|
|
|
|
|
note: used here
|
|
--> tests/ui/single_call_fn.rs:105:5
|
|
|
|
|
LL | S::foo();
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 6 previous errors
|
|
|