summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/new_ret_no_self.stderr
blob: 2eaebfb5cac50041df6bc18f6c2a78bb79017691 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:50: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:82:5
   |
LL | /     pub fn new() -> u32 {
LL | |         unimplemented!();
LL | |     }
   | |_____^

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

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

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

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

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

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

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

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

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:369:9
   |
LL | /         fn new(t: T) -> impl Into<i32> {
LL | |             1
LL | |         }
   | |_________^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:390:9
   |
LL | /         fn new(t: T) -> impl Trait2<(), i32> {
LL | |             unimplemented!()
LL | |         }
   | |_________^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:410:9
   |
LL | /         pub fn new() -> impl PartialOrd {
LL | |             0i32
LL | |         }
   | |_________^

error: methods called `new` usually return `Self`
  --> $DIR/new_ret_no_self.rs:421:9
   |
LL | /         pub fn new() -> X {
LL | |             0i32
LL | |         }
   | |_________^

error: aborting due to 14 previous errors