]> git.lizzy.rs Git - rust.git/blob - tests/ui/new_ret_no_self.stderr
new_ret_no_self fix false positive for impl trait return with associated type self
[rust.git] / tests / ui / new_ret_no_self.stderr
1 error: methods called `new` usually return `Self`
2   --> $DIR/new_ret_no_self.rs:64:5
3    |
4 64 | /     pub fn new() -> u32 {
5 65 | |         unimplemented!();
6 66 | |     }
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:73:5
13    |
14 73 | /     pub fn new(_: String) -> u32 {
15 74 | |         unimplemented!();
16 75 | |     }
17    | |_____^
18
19 error: aborting due to 2 previous errors
20