]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/new_ret_no_self.stderr
Auto merge of #76019 - pietroalbini:rollup-1tkgdnd, r=pietroalbini
[rust.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:49: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:81: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:90: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:126: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:153: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:171:5
45    |
46 LL | /     pub fn new() -> Option<u32> {
47 LL | |         unimplemented!();
48 LL | |     }
49    | |_____^
50
51 error: aborting due to 6 previous errors
52