2018-10-03 05:55:31 -05:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-04 21:01:04 -05:00
|
|
|
--> $DIR/new_ret_no_self.rs:51:5
|
2018-10-03 05:55:31 -05:00
|
|
|
|
|
2018-10-04 21:01:04 -05:00
|
|
|
51 | / pub fn new(_: String) -> impl R<Item = u32> {
|
|
|
|
52 | | S3
|
|
|
|
53 | | }
|
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-04 21:01:04 -05:00
|
|
|
--> $DIR/new_ret_no_self.rs:83:5
|
2018-10-03 05:55:31 -05:00
|
|
|
|
|
2018-10-04 21:01:04 -05:00
|
|
|
83 | / pub fn new() -> u32 {
|
|
|
|
84 | | unimplemented!();
|
|
|
|
85 | | }
|
2018-10-03 05:55:31 -05:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-04 21:01:04 -05:00
|
|
|
error: methods called `new` usually return `Self`
|
|
|
|
--> $DIR/new_ret_no_self.rs:92:5
|
|
|
|
|
|
|
|
|
92 | / pub fn new(_: String) -> u32 {
|
|
|
|
93 | | unimplemented!();
|
|
|
|
94 | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-10-03 05:55:31 -05:00
|
|
|
|