2018-10-03 05:55:31 -05:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-13 08:33:46 -05:00
|
|
|
--> $DIR/new_ret_no_self.rs:49:5
|
2018-10-03 05:55:31 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | / pub fn new(_: String) -> impl R<Item = u32> {
|
|
|
|
LL | | S3
|
|
|
|
LL | | }
|
2018-10-03 05:55:31 -05:00
|
|
|
| |_____^
|
2018-10-03 06:59:14 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
|
2018-10-03 05:55:31 -05:00
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-13 08:33:46 -05:00
|
|
|
--> $DIR/new_ret_no_self.rs:81:5
|
2018-10-03 05:55:31 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | / pub fn new() -> u32 {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
2018-10-03 05:55:31 -05:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-04 21:01:04 -05:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-13 08:33:46 -05:00
|
|
|
--> $DIR/new_ret_no_self.rs:90:5
|
2018-10-04 21:01:04 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | / pub fn new(_: String) -> u32 {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
2018-10-04 21:01:04 -05:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-19 06:55:06 -05:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-12-27 09:57:55 -06:00
|
|
|
--> $DIR/new_ret_no_self.rs:126:5
|
|
|
|
|
|
|
|
|
LL | / pub fn new() -> (u32, u32) {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-10-19 06:55:06 -05:00
|
|
|
|
2018-10-19 07:20:33 -05:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-12-27 09:57:55 -06:00
|
|
|
--> $DIR/new_ret_no_self.rs:153:5
|
|
|
|
|
|
|
|
|
LL | / pub fn new() -> *mut V {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-10-19 07:20:33 -05:00
|
|
|
|
2018-10-20 08:29:17 -05:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-12-27 09:57:55 -06:00
|
|
|
--> $DIR/new_ret_no_self.rs:171:5
|
|
|
|
|
|
|
|
|
LL | / pub fn new() -> Option<u32> {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-10-20 08:29:17 -05:00
|
|
|
|
2020-07-07 15:47:32 -05:00
|
|
|
error: methods called `new` usually return `Self`
|
|
|
|
--> $DIR/new_ret_no_self.rs:224:9
|
|
|
|
|
|
|
|
|
LL | fn new() -> String;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
|
|
|
--> $DIR/new_ret_no_self.rs:236:9
|
|
|
|
|
|
|
|
|
LL | fn new(_: String) -> String;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
|
|
|
--> $DIR/new_ret_no_self.rs:271:9
|
|
|
|
|
|
|
|
|
LL | / fn new() -> (u32, u32) {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
|
|
|
--> $DIR/new_ret_no_self.rs:298:9
|
|
|
|
|
|
|
|
|
LL | / fn new() -> *mut V {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
2022-10-27 12:50:42 -05:00
|
|
|
error: methods called `new` usually return `Self`
|
|
|
|
--> $DIR/new_ret_no_self.rs:368:9
|
|
|
|
|
|
|
|
|
LL | / fn new(t: T) -> impl Into<i32> {
|
|
|
|
LL | | 1
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
|
|
|
--> $DIR/new_ret_no_self.rs:389:9
|
|
|
|
|
|
|
|
|
LL | / fn new(t: T) -> impl Trait2<(), i32> {
|
|
|
|
LL | | unimplemented!()
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
2018-10-03 05:55:31 -05:00
|
|
|
|