summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/new_ret_no_self.stderr
blob: 8217bc6187f93aa5cfce1ddbc5ce7ed4788b6173 (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
error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:49:5
   |
LL | /     pub fn new(_: String) -> impl R<Item = u32> {
LL | |         S3
LL | |     }
   | |_____^
   |
   = note: `-D clippy::new-ret-no-self` implied by `-D warnings`

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:81:5
   |
LL | /     pub fn new() -> u32 {
LL | |         unimplemented!();
LL | |     }
   | |_____^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:90:5
   |
LL | /     pub fn new(_: String) -> u32 {
LL | |         unimplemented!();
LL | |     }
   | |_____^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:126:5
   |
LL | /     pub fn new() -> (u32, u32) {
LL | |         unimplemented!();
LL | |     }
   | |_____^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:153:5
   |
LL | /     pub fn new() -> *mut V {
LL | |         unimplemented!();
LL | |     }
   | |_____^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:171:5
   |
LL | /     pub fn new() -> Option<u32> {
LL | |         unimplemented!();
LL | |     }
   | |_____^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:224:9
   |
LL |         fn new() -> String;
   |         ^^^^^^^^^^^^^^^^^^^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:236:9
   |
LL |         fn new(_: String) -> String;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:271:9
   |
LL | /         fn new() -> (u32, u32) {
LL | |             unimplemented!();
LL | |         }
   | |_________^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:298:9
   |
LL | /         fn new() -> *mut V {
LL | |             unimplemented!();
LL | |         }
   | |_________^

error: aborting due to 10 previous errors