21 lines
487 B
Plaintext
21 lines
487 B
Plaintext
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:64:5
|
|
|
|
|
64 | / pub fn new() -> u32 {
|
|
65 | | unimplemented!();
|
|
66 | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:73:5
|
|
|
|
|
73 | / pub fn new(_: String) -> u32 {
|
|
74 | | unimplemented!();
|
|
75 | | }
|
|
| |_____^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|