]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/unused_unit.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / unused_unit.stderr
CommitLineData
f20569fa
XL
1error: unneeded unit return type
2 --> $DIR/unused_unit.rs:19:28
3 |
4LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> ()
5 | ^^^^^^ help: remove the `-> ()`
6 |
7note: the lint level is defined here
8 --> $DIR/unused_unit.rs:12:9
9 |
10LL | #![deny(clippy::unused_unit)]
11 | ^^^^^^^^^^^^^^^^^^^
12
13error: unneeded unit return type
14 --> $DIR/unused_unit.rs:20:18
15 |
16LL | where G: Fn() -> () {
17 | ^^^^^^ help: remove the `-> ()`
18
19error: unneeded unit return type
20 --> $DIR/unused_unit.rs:19:58
21 |
22LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> ()
23 | ^^^^^^ help: remove the `-> ()`
24
25error: unneeded unit return type
26 --> $DIR/unused_unit.rs:21:26
27 |
28LL | let _y: &dyn Fn() -> () = &f;
29 | ^^^^^^ help: remove the `-> ()`
30
31error: unneeded unit return type
32 --> $DIR/unused_unit.rs:28:18
33 |
34LL | fn into(self) -> () {
35 | ^^^^^^ help: remove the `-> ()`
36
37error: unneeded unit expression
38 --> $DIR/unused_unit.rs:29:9
39 |
40LL | ()
41 | ^^ help: remove the final `()`
42
43error: unneeded unit return type
44 --> $DIR/unused_unit.rs:34:29
45 |
46LL | fn redundant<F: FnOnce() -> (), G, H>(&self, _f: F, _g: G, _h: H)
47 | ^^^^^^ help: remove the `-> ()`
48
49error: unneeded unit return type
50 --> $DIR/unused_unit.rs:36:19
51 |
52LL | G: FnMut() -> (),
53 | ^^^^^^ help: remove the `-> ()`
54
55error: unneeded unit return type
56 --> $DIR/unused_unit.rs:37:16
57 |
58LL | H: Fn() -> ();
59 | ^^^^^^ help: remove the `-> ()`
60
61error: unneeded unit return type
62 --> $DIR/unused_unit.rs:41:29
63 |
64LL | fn redundant<F: FnOnce() -> (), G, H>(&self, _f: F, _g: G, _h: H)
65 | ^^^^^^ help: remove the `-> ()`
66
67error: unneeded unit return type
68 --> $DIR/unused_unit.rs:43:19
69 |
70LL | G: FnMut() -> (),
71 | ^^^^^^ help: remove the `-> ()`
72
73error: unneeded unit return type
74 --> $DIR/unused_unit.rs:44:16
75 |
76LL | H: Fn() -> () {}
77 | ^^^^^^ help: remove the `-> ()`
78
79error: unneeded unit return type
80 --> $DIR/unused_unit.rs:47:17
81 |
82LL | fn return_unit() -> () { () }
83 | ^^^^^^ help: remove the `-> ()`
84
85error: unneeded unit expression
86 --> $DIR/unused_unit.rs:47:26
87 |
88LL | fn return_unit() -> () { () }
89 | ^^ help: remove the final `()`
90
91error: unneeded `()`
92 --> $DIR/unused_unit.rs:57:14
93 |
94LL | break();
95 | ^^ help: remove the `()`
96
97error: unneeded `()`
98 --> $DIR/unused_unit.rs:59:11
99 |
100LL | return();
101 | ^^ help: remove the `()`
102
103error: unneeded unit return type
104 --> $DIR/unused_unit.rs:76:10
105 |
106LL | fn test()->(){}
107 | ^^^^ help: remove the `-> ()`
108
109error: unneeded unit return type
110 --> $DIR/unused_unit.rs:79:11
111 |
112LL | fn test2() ->(){}
113 | ^^^^^ help: remove the `-> ()`
114
115error: unneeded unit return type
116 --> $DIR/unused_unit.rs:82:11
117 |
118LL | fn test3()-> (){}
119 | ^^^^^ help: remove the `-> ()`
120
121error: aborting due to 19 previous errors
122