29 lines
679 B
Plaintext
29 lines
679 B
Plaintext
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:51:5
|
|
|
|
|
51 | / pub fn new(_: String) -> impl R<Item = u32> {
|
|
52 | | S3
|
|
53 | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:83:5
|
|
|
|
|
83 | / pub fn new() -> u32 {
|
|
84 | | unimplemented!();
|
|
85 | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:92:5
|
|
|
|
|
92 | / pub fn new(_: String) -> u32 {
|
|
93 | | unimplemented!();
|
|
94 | | }
|
|
| |_____^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|