mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
52 lines
1.2 KiB
Text
52 lines
1.2 KiB
Text
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:49:5
|
|
|
|
|
LL | / pub fn new(_: String) -> impl R<Item = u32> {
|
|
LL | | S3
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:81:5
|
|
|
|
|
LL | / pub fn new() -> u32 {
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:90:5
|
|
|
|
|
LL | / pub fn new(_: String) -> u32 {
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:126:5
|
|
|
|
|
LL | / pub fn new() -> (u32, u32) {
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:153:5
|
|
|
|
|
LL | / pub fn new() -> *mut V {
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:171:5
|
|
|
|
|
LL | / pub fn new() -> Option<u32> {
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: aborting due to 6 previous errors
|
|
|