]> git.lizzy.rs Git - rust.git/blob - tests/ui/new_ret_no_self.stderr
Merge remote-tracking branch 'upstream/master'
[rust.git] / 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 49 | /     pub fn new(_: String) -> impl R<Item = u32> {
5 50 | |         S3
6 51 | |     }
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 81 | /     pub fn new() -> u32 {
15 82 | |         unimplemented!();
16 83 | |     }
17    | |_____^
18
19 error: methods called `new` usually return `Self`
20   --> $DIR/new_ret_no_self.rs:90:5
21    |
22 90 | /     pub fn new(_: String) -> u32 {
23 91 | |         unimplemented!();
24 92 | |     }
25    | |_____^
26
27 error: methods called `new` usually return `Self`
28    --> $DIR/new_ret_no_self.rs:120:5
29     |
30 120 |     pub fn new() -> (u32, u32) { unimplemented!(); }
31     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
33 error: methods called `new` usually return `Self`
34    --> $DIR/new_ret_no_self.rs:141:5
35     |
36 141 |     pub fn new() -> *mut V { unimplemented!(); }
37     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
39 error: methods called `new` usually return `Self`
40    --> $DIR/new_ret_no_self.rs:155:5
41     |
42 155 |     pub fn new() -> Option<u32> { unimplemented!(); }
43     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
45 error: aborting due to 6 previous errors
46