2018-10-03 10:55:31 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-03 11:59:14 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:64:5
|
2018-10-03 10:55:31 +00:00
|
|
|
|
|
2018-10-03 11:59:14 +00:00
|
|
|
64 | / pub fn new() -> u32 {
|
|
|
|
65 | | unimplemented!();
|
|
|
|
66 | | }
|
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-03 11:59:14 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:73:5
|
2018-10-03 10:55:31 +00:00
|
|
|
|
|
2018-10-03 11:59:14 +00:00
|
|
|
73 | / pub fn new(_: String) -> u32 {
|
|
|
|
74 | | unimplemented!();
|
|
|
|
75 | | }
|
2018-10-03 10:55:31 +00:00
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|