fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB56 linesraw
1error: this function is only used once
2  --> $DIR/single_call_fn.rs:34:1
3   |
4LL | / fn c() {
5LL | |     println!("really");
6LL | |     println!("long");
7LL | |     println!("function...");
8LL | | }
9   | |_^
10   |
11help: used here
12  --> $DIR/single_call_fn.rs:41:5
13   |
14LL |     c();
15   |     ^
16   = note: `-D clippy::single-call-fn` implied by `-D warnings`
17   = help: to override `-D warnings` add `#[allow(clippy::single_call_fn)]`
18
19error: this function is only used once
20  --> $DIR/single_call_fn.rs:13:1
21   |
22LL | fn i() {}
23   | ^^^^^^^^^
24   |
25help: used here
26  --> $DIR/single_call_fn.rs:18:13
27   |
28LL |     let a = i;
29   |             ^
30
31error: this function is only used once
32  --> $DIR/single_call_fn.rs:44:1
33   |
34LL | fn a() {}
35   | ^^^^^^^^^
36   |
37help: used here
38  --> $DIR/single_call_fn.rs:47:5
39   |
40LL |     a();
41   |     ^
42
43error: this function is only used once
44  --> $DIR/single_call_fn.rs:14:1
45   |
46LL | fn j() {}
47   | ^^^^^^^^^
48   |
49help: used here
50  --> $DIR/single_call_fn.rs:25:9
51   |
52LL |         j();
53   |         ^
54
55error: aborting due to 4 previous errors
56