]> git.lizzy.rs Git - rust.git/blob - tests/ui/new_ret_no_self.stderr
new_ret_no_self correctly lint impl return
[rust.git] / tests / ui / new_ret_no_self.stderr
1 error: methods called `new` usually return `Self`
2   --> $DIR/new_ret_no_self.rs:51:5
3    |
4 51 | /     pub fn new(_: String) -> impl R<Item = u32> {
5 52 | |         S3
6 53 | |     }
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:83:5
13    |
14 83 | /     pub fn new() -> u32 {
15 84 | |         unimplemented!();
16 85 | |     }
17    | |_____^
18
19 error: methods called `new` usually return `Self`
20   --> $DIR/new_ret_no_self.rs:92:5
21    |
22 92 | /     pub fn new(_: String) -> u32 {
23 93 | |         unimplemented!();
24 94 | |     }
25    | |_____^
26
27 error: aborting due to 3 previous errors
28