2018-10-03 10:55:31 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-13 13:33:46 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:49:5
|
2018-10-03 10:55:31 +00:00
|
|
|
|
|
2018-10-13 13:33:46 +00:00
|
|
|
49 | / pub fn new(_: String) -> impl R<Item = u32> {
|
|
|
|
50 | | S3
|
|
|
|
51 | | }
|
2018-10-03 10:55:31 +00:00
|
|
|
| |_____^
|
2018-10-03 11:59:14 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
|
2018-10-03 10:55:31 +00:00
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-13 13:33:46 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:81:5
|
2018-10-03 10:55:31 +00:00
|
|
|
|
|
2018-10-13 13:33:46 +00:00
|
|
|
81 | / pub fn new() -> u32 {
|
|
|
|
82 | | unimplemented!();
|
|
|
|
83 | | }
|
2018-10-03 10:55:31 +00:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-05 02:01:04 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-13 13:33:46 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:90:5
|
2018-10-05 02:01:04 +00:00
|
|
|
|
|
2018-10-13 13:33:46 +00:00
|
|
|
90 | / pub fn new(_: String) -> u32 {
|
|
|
|
91 | | unimplemented!();
|
|
|
|
92 | | }
|
2018-10-05 02:01:04 +00:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-19 11:55:06 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
|
|
|
--> $DIR/new_ret_no_self.rs:120:5
|
|
|
|
|
|
|
|
|
120 | pub fn new() -> (u32, u32) { unimplemented!(); }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-10-19 12:20:33 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
|
|
|
--> $DIR/new_ret_no_self.rs:141:5
|
|
|
|
|
|
|
|
|
141 | pub fn new() -> *mut V { unimplemented!(); }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2018-10-03 10:55:31 +00:00
|
|
|
|