]> git.lizzy.rs Git - rust.git/blob - tests/ui/wrong_self_convention.stderr
remove all //~ from tests
[rust.git] / tests / ui / wrong_self_convention.stderr
1 error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
2   --> $DIR/wrong_self_convention.rs:21:17
3    |
4 21 |     fn from_i32(self) {}
5    |                 ^^^^
6    |
7 note: lint level defined here
8   --> $DIR/wrong_self_convention.rs:4:9
9    |
10 4  | #![deny(wrong_self_convention)]
11    |         ^^^^^^^^^^^^^^^^^^^^^
12
13 error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
14   --> $DIR/wrong_self_convention.rs:27:21
15    |
16 27 |     pub fn from_i64(self) {}
17    |                     ^^^^
18
19 error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name
20   --> $DIR/wrong_self_convention.rs:38:15
21    |
22 38 |     fn as_i32(self) {}
23    |               ^^^^
24
25 error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name
26   --> $DIR/wrong_self_convention.rs:40:17
27    |
28 40 |     fn into_i32(&self) {}
29    |                 ^^^^^
30
31 error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name
32   --> $DIR/wrong_self_convention.rs:42:15
33    |
34 42 |     fn is_i32(self) {}
35    |               ^^^^
36
37 error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name
38   --> $DIR/wrong_self_convention.rs:44:15
39    |
40 44 |     fn to_i32(self) {}
41    |               ^^^^
42
43 error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
44   --> $DIR/wrong_self_convention.rs:46:17
45    |
46 46 |     fn from_i32(self) {}
47    |                 ^^^^
48
49 error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name
50   --> $DIR/wrong_self_convention.rs:48:19
51    |
52 48 |     pub fn as_i64(self) {}
53    |                   ^^^^
54
55 error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name
56   --> $DIR/wrong_self_convention.rs:49:21
57    |
58 49 |     pub fn into_i64(&self) {}
59    |                     ^^^^^
60
61 error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name
62   --> $DIR/wrong_self_convention.rs:50:19
63    |
64 50 |     pub fn is_i64(self) {}
65    |                   ^^^^
66
67 error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name
68   --> $DIR/wrong_self_convention.rs:51:19
69    |
70 51 |     pub fn to_i64(self) {}
71    |                   ^^^^
72
73 error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
74   --> $DIR/wrong_self_convention.rs:52:21
75    |
76 52 |     pub fn from_i64(self) {}
77    |                     ^^^^
78
79 error: aborting due to 12 previous errors
80