mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
107 lines
2.4 KiB
Text
107 lines
2.4 KiB
Text
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:50:5
|
|
|
|
|
LL | / pub fn new(_: String) -> impl R<Item = u32> {
|
|
LL | |
|
|
LL | |
|
|
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:84:5
|
|
|
|
|
LL | / pub fn new() -> u32 {
|
|
LL | |
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:94:5
|
|
|
|
|
LL | / pub fn new(_: String) -> u32 {
|
|
LL | |
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:131:5
|
|
|
|
|
LL | / pub fn new() -> (u32, u32) {
|
|
LL | |
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:159:5
|
|
|
|
|
LL | / pub fn new() -> *mut V {
|
|
LL | |
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:178:5
|
|
|
|
|
LL | / pub fn new() -> Option<u32> {
|
|
LL | |
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:232:9
|
|
|
|
|
LL | fn new() -> String;
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:245:9
|
|
|
|
|
LL | fn new(_: String) -> String;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:281:9
|
|
|
|
|
LL | / fn new() -> (u32, u32) {
|
|
LL | |
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_________^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:309:9
|
|
|
|
|
LL | / fn new() -> *mut V {
|
|
LL | |
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_________^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:380:9
|
|
|
|
|
LL | / fn new(t: T) -> impl Into<i32> {
|
|
LL | |
|
|
LL | | 1
|
|
LL | | }
|
|
| |_________^
|
|
|
|
error: methods called `new` usually return `Self`
|
|
--> $DIR/new_ret_no_self.rs:402:9
|
|
|
|
|
LL | / fn new(t: T) -> impl Trait2<(), i32> {
|
|
LL | |
|
|
LL | | unimplemented!()
|
|
LL | | }
|
|
| |_________^
|
|
|
|
error: aborting due to 12 previous errors
|
|
|