]> git.lizzy.rs Git - rust.git/blob - tests/ui/wrong_self_convention.stderr
update most tests to 2021 edition
[rust.git] / tests / ui / wrong_self_convention.stderr
1 error: methods called `from_*` usually take no `self`
2   --> $DIR/wrong_self_convention.rs:16:17
3    |
4 LL |     fn from_i32(self) {}
5    |                 ^^^^
6    |
7    = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
8    = help: consider choosing a less ambiguous name
9
10 error: methods called `from_*` usually take no `self`
11   --> $DIR/wrong_self_convention.rs:22:21
12    |
13 LL |     pub fn from_i64(self) {}
14    |                     ^^^^
15    |
16    = help: consider choosing a less ambiguous name
17
18 error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
19   --> $DIR/wrong_self_convention.rs:34:15
20    |
21 LL |     fn as_i32(self) {}
22    |               ^^^^
23    |
24    = help: consider choosing a less ambiguous name
25
26 error: methods called `into_*` usually take `self` by value
27   --> $DIR/wrong_self_convention.rs:36:17
28    |
29 LL |     fn into_i32(&self) {}
30    |                 ^^^^^
31    |
32    = help: consider choosing a less ambiguous name
33
34 error: methods called `is_*` usually take `self` by reference or no `self`
35   --> $DIR/wrong_self_convention.rs:38:15
36    |
37 LL |     fn is_i32(self) {}
38    |               ^^^^
39    |
40    = help: consider choosing a less ambiguous name
41
42 error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
43   --> $DIR/wrong_self_convention.rs:40:15
44    |
45 LL |     fn to_i32(self) {}
46    |               ^^^^
47    |
48    = help: consider choosing a less ambiguous name
49
50 error: methods called `from_*` usually take no `self`
51   --> $DIR/wrong_self_convention.rs:42:17
52    |
53 LL |     fn from_i32(self) {}
54    |                 ^^^^
55    |
56    = help: consider choosing a less ambiguous name
57
58 error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
59   --> $DIR/wrong_self_convention.rs:44:19
60    |
61 LL |     pub fn as_i64(self) {}
62    |                   ^^^^
63    |
64    = help: consider choosing a less ambiguous name
65
66 error: methods called `into_*` usually take `self` by value
67   --> $DIR/wrong_self_convention.rs:45:21
68    |
69 LL |     pub fn into_i64(&self) {}
70    |                     ^^^^^
71    |
72    = help: consider choosing a less ambiguous name
73
74 error: methods called `is_*` usually take `self` by reference or no `self`
75   --> $DIR/wrong_self_convention.rs:46:19
76    |
77 LL |     pub fn is_i64(self) {}
78    |                   ^^^^
79    |
80    = help: consider choosing a less ambiguous name
81
82 error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
83   --> $DIR/wrong_self_convention.rs:47:19
84    |
85 LL |     pub fn to_i64(self) {}
86    |                   ^^^^
87    |
88    = help: consider choosing a less ambiguous name
89
90 error: methods called `from_*` usually take no `self`
91   --> $DIR/wrong_self_convention.rs:48:21
92    |
93 LL |     pub fn from_i64(self) {}
94    |                     ^^^^
95    |
96    = help: consider choosing a less ambiguous name
97
98 error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
99   --> $DIR/wrong_self_convention.rs:93:19
100    |
101 LL |         fn as_i32(self) {}
102    |                   ^^^^
103    |
104    = help: consider choosing a less ambiguous name
105
106 error: methods called `into_*` usually take `self` by value
107   --> $DIR/wrong_self_convention.rs:96:25
108    |
109 LL |         fn into_i32_ref(&self) {}
110    |                         ^^^^^
111    |
112    = help: consider choosing a less ambiguous name
113
114 error: methods called `is_*` usually take `self` by reference or no `self`
115   --> $DIR/wrong_self_convention.rs:98:19
116    |
117 LL |         fn is_i32(self) {}
118    |                   ^^^^
119    |
120    = help: consider choosing a less ambiguous name
121
122 error: methods called `from_*` usually take no `self`
123   --> $DIR/wrong_self_convention.rs:102:21
124    |
125 LL |         fn from_i32(self) {}
126    |                     ^^^^
127    |
128    = help: consider choosing a less ambiguous name
129
130 error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
131   --> $DIR/wrong_self_convention.rs:117:19
132    |
133 LL |         fn as_i32(self);
134    |                   ^^^^
135    |
136    = help: consider choosing a less ambiguous name
137
138 error: methods called `into_*` usually take `self` by value
139   --> $DIR/wrong_self_convention.rs:120:25
140    |
141 LL |         fn into_i32_ref(&self);
142    |                         ^^^^^
143    |
144    = help: consider choosing a less ambiguous name
145
146 error: methods called `is_*` usually take `self` by reference or no `self`
147   --> $DIR/wrong_self_convention.rs:122:19
148    |
149 LL |         fn is_i32(self);
150    |                   ^^^^
151    |
152    = help: consider choosing a less ambiguous name
153
154 error: methods called `from_*` usually take no `self`
155   --> $DIR/wrong_self_convention.rs:126:21
156    |
157 LL |         fn from_i32(self);
158    |                     ^^^^
159    |
160    = help: consider choosing a less ambiguous name
161
162 error: methods called `into_*` usually take `self` by value
163   --> $DIR/wrong_self_convention.rs:144:25
164    |
165 LL |         fn into_i32_ref(&self);
166    |                         ^^^^^
167    |
168    = help: consider choosing a less ambiguous name
169
170 error: methods called `from_*` usually take no `self`
171   --> $DIR/wrong_self_convention.rs:150:21
172    |
173 LL |         fn from_i32(self);
174    |                     ^^^^
175    |
176    = help: consider choosing a less ambiguous name
177
178 error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
179   --> $DIR/wrong_self_convention.rs:174:22
180    |
181 LL |         fn to_u64_v2(&self) -> u64 {
182    |                      ^^^^^
183    |
184    = help: consider choosing a less ambiguous name
185
186 error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
187   --> $DIR/wrong_self_convention.rs:183:19
188    |
189 LL |         fn to_u64(self) -> u64 {
190    |                   ^^^^
191    |
192    = help: consider choosing a less ambiguous name
193
194 error: aborting due to 24 previous errors
195