about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/single_call_fn.stderr
blob: 8dd90a12385225ec228c1eb2d04ae8ee73104cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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:20: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:15:1
   |
LL | fn j() {}
   | ^^^^^^^^^
   |
note: used here
  --> tests/ui/single_call_fn.rs:27:9
   |
LL |         j();
   |         ^

error: this function is only used once
  --> tests/ui/single_call_fn.rs:36:1
   |
LL | / fn c() {
LL | |
LL | |     println!("really");
LL | |     println!("long");
LL | |     println!("function...");
LL | | }
   | |_^
   |
note: used here
  --> tests/ui/single_call_fn.rs:44:5
   |
LL |     c();
   |     ^

error: this function is only used once
  --> tests/ui/single_call_fn.rs:47:1
   |
LL | fn a() {}
   | ^^^^^^^^^
   |
note: used here
  --> tests/ui/single_call_fn.rs:51:5
   |
LL |     a();
   |     ^

error: this function is only used once
  --> tests/ui/single_call_fn.rs:93:5
   |
LL |     fn default() {}
   |     ^^^^^^^^^^^^^^^
   |
note: used here
  --> tests/ui/single_call_fn.rs:110:5
   |
LL |     T::default();
   |     ^^^^^^^^^^

error: this function is only used once
  --> tests/ui/single_call_fn.rs:107:9
   |
LL |         fn foo() {}
   |         ^^^^^^^^^^^
   |
note: used here
  --> tests/ui/single_call_fn.rs:111:5
   |
LL |     S::foo();
   |     ^^^^^^

error: aborting due to 6 previous errors