]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/new_ret_no_self.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / new_ret_no_self.stderr
1 error: methods called `new` usually return `Self`
2 --> $DIR/new_ret_no_self.rs:50:5
3 |
4 LL | / pub fn new(_: String) -> impl R<Item = u32> {
5 LL | | S3
6 LL | | }
7 | |_____^
8 |
9 = note: `-D clippy::new-ret-no-self` implied by `-D warnings`
10
11 error: methods called `new` usually return `Self`
12 --> $DIR/new_ret_no_self.rs:82:5
13 |
14 LL | / pub fn new() -> u32 {
15 LL | | unimplemented!();
16 LL | | }
17 | |_____^
18
19 error: methods called `new` usually return `Self`
20 --> $DIR/new_ret_no_self.rs:91:5
21 |
22 LL | / pub fn new(_: String) -> u32 {
23 LL | | unimplemented!();
24 LL | | }
25 | |_____^
26
27 error: methods called `new` usually return `Self`
28 --> $DIR/new_ret_no_self.rs:127:5
29 |
30 LL | / pub fn new() -> (u32, u32) {
31 LL | | unimplemented!();
32 LL | | }
33 | |_____^
34
35 error: methods called `new` usually return `Self`
36 --> $DIR/new_ret_no_self.rs:154:5
37 |
38 LL | / pub fn new() -> *mut V {
39 LL | | unimplemented!();
40 LL | | }
41 | |_____^
42
43 error: methods called `new` usually return `Self`
44 --> $DIR/new_ret_no_self.rs:172:5
45 |
46 LL | / pub fn new() -> Option<u32> {
47 LL | | unimplemented!();
48 LL | | }
49 | |_____^
50
51 error: methods called `new` usually return `Self`
52 --> $DIR/new_ret_no_self.rs:225:9
53 |
54 LL | fn new() -> String;
55 | ^^^^^^^^^^^^^^^^^^^
56
57 error: methods called `new` usually return `Self`
58 --> $DIR/new_ret_no_self.rs:237:9
59 |
60 LL | fn new(_: String) -> String;
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62
63 error: methods called `new` usually return `Self`
64 --> $DIR/new_ret_no_self.rs:272:9
65 |
66 LL | / fn new() -> (u32, u32) {
67 LL | | unimplemented!();
68 LL | | }
69 | |_________^
70
71 error: methods called `new` usually return `Self`
72 --> $DIR/new_ret_no_self.rs:299:9
73 |
74 LL | / fn new() -> *mut V {
75 LL | | unimplemented!();
76 LL | | }
77 | |_________^
78
79 error: methods called `new` usually return `Self`
80 --> $DIR/new_ret_no_self.rs:369:9
81 |
82 LL | / fn new(t: T) -> impl Into<i32> {
83 LL | | 1
84 LL | | }
85 | |_________^
86
87 error: methods called `new` usually return `Self`
88 --> $DIR/new_ret_no_self.rs:390:9
89 |
90 LL | / fn new(t: T) -> impl Trait2<(), i32> {
91 LL | | unimplemented!()
92 LL | | }
93 | |_________^
94
95 error: methods called `new` usually return `Self`
96 --> $DIR/new_ret_no_self.rs:410:9
97 |
98 LL | / pub fn new() -> impl PartialOrd {
99 LL | | 0i32
100 LL | | }
101 | |_________^
102
103 error: methods called `new` usually return `Self`
104 --> $DIR/new_ret_no_self.rs:421:9
105 |
106 LL | / pub fn new() -> X {
107 LL | | 0i32
108 LL | | }
109 | |_________^
110
111 error: aborting due to 14 previous errors
112